X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucompiler.cpp;h=470934e0fe7e32432f7d9b344690e9bcbd5be047;hb=08731ed6bc22bdd9324081fe99fff69dde1a7951;hp=16e7ccac1d88da73a34776e288980b295f4f0747;hpb=d75cd87bdcf889148d50415366d713ed82456945;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 16e7cca..470934e 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -27,7 +27,7 @@ const char *cpus[] = } -GnuCompiler::GnuCompiler(Builder &b, const Architecture &a, const string &t, const FS::Path &sysroot): +GnuCompiler::GnuCompiler(Builder &b, const Architecture &a, const string &t): Tool(b, a, t) { if(tag=="CC") @@ -50,9 +50,6 @@ GnuCompiler::GnuCompiler(Builder &b, const Architecture &a, const string &t, con throw invalid_argument("GnuCompiler::GnuCompiler"); set_command((tag=="CXX" ? "g++" : "gcc"), true); - - if(!sysroot.empty()) - build_info.sysroot = sysroot; } Target *GnuCompiler::create_source(const Component &comp, const FS::Path &path) const @@ -83,6 +80,9 @@ Target *GnuCompiler::create_target(const list &sources, const string & string GnuCompiler::create_build_signature(const BuildInfo &binfo) const { + if(!executable) + return string(); + string result = FS::basename(executable->get_path()); if(!architecture->get_cpu().empty()) {