]> git.tdb.fi Git - builder.git/commitdiff
Use C++ include path from sysroot
authorMikko Rasa <tdb@tdb.fi>
Thu, 9 Oct 2014 21:02:02 +0000 (00:02 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 9 Oct 2014 21:02:02 +0000 (00:02 +0300)
source/gnucxxcompiler.cpp

index d1d05d8b80b9ce6b5b1da5a24b8b0491c4f5a899..87fe1642801fbd466f92474fb9e69d25f76c1fae 100644 (file)
@@ -29,7 +29,8 @@ void GnuCxxCompiler::do_prepare()
        GnuCompiler::do_prepare();
        if(!version.empty())
        {
-               FS::Path cxx_path = FS::Path("/usr/include/c++")/version;
+               const FS::Path &sysroot = build_info.sysroot;
+               FS::Path cxx_path = sysroot/"usr"/"include"/"c++"/version;
                if(FS::is_dir(cxx_path))
                        system_path.push_back(cxx_path);
        }