From: Mikko Rasa Date: Thu, 9 Oct 2014 21:02:02 +0000 (+0300) Subject: Use C++ include path from sysroot X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=a710a9ecc1758dcf841a3a6623e1b6395f8295ad Use C++ include path from sysroot --- 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); }