X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucxxcompiler.cpp;h=87fe1642801fbd466f92474fb9e69d25f76c1fae;hb=a710a9ecc1758dcf841a3a6623e1b6395f8295ad;hp=d1d05d8b80b9ce6b5b1da5a24b8b0491c4f5a899;hpb=1c80c1c33af10e8e325808906a95969ee57676b6;p=builder.git diff --git a/source/gnucxxcompiler.cpp b/source/gnucxxcompiler.cpp index d1d05d8..87fe164 100644 --- a/source/gnucxxcompiler.cpp +++ b/source/gnucxxcompiler.cpp @@ -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); }