]> git.tdb.fi Git - builder.git/blobdiff - source/virtualfilesystem.cpp
Make tools capable of reporting a system-wide path used to locate input files
[builder.git] / source / virtualfilesystem.cpp
index 75f935d505e4c4388c9d1073c1de0ec7a01786a6..d5cf909e5f7c284d6121917b4f82f51ab2cea273 100644 (file)
@@ -51,30 +51,6 @@ FileTarget *VirtualFileSystem::find_header(const string &name, const SearchPath
        if(i!=include_cache.end())
                return i->second;
 
-       static string cxx_ver;
-       if(cxx_ver.empty())
-       {
-               // XXX This needs to go elsewhere
-               /*StringList argv;
-               argv.push_back(current_arch->get_tool("CXX"));
-               argv.push_back("--version");
-               if(RegMatch m = Regex("[0-9]\\.[0-9.]+").match(run_command(argv)))
-               {
-                       cxx_ver = m[0].str;
-                       while(!cxx_ver.empty() && !FS::is_dir(FS::Path("/usr/include/c++")/cxx_ver))
-                       {
-                               string::size_type dot = cxx_ver.rfind('.');
-                               if(dot==string::npos)
-                                       break;
-                               cxx_ver.erase(dot);
-                       }
-                       if(verbose>=5)
-                               IO::print("C++ version is %s\n", cxx_ver);
-               }
-               else*/
-                       cxx_ver = "-";
-       }
-
        if(builder.get_verbose()>=5)
                IO::print("Looking for header %s with path %s\n", name, join(path.begin(), path.end()));