From a710a9ecc1758dcf841a3a6623e1b6395f8295ad Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 10 Oct 2014 00:02:02 +0300 Subject: [PATCH] Use C++ include path from sysroot --- source/gnucxxcompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.43.0