}
-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")
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
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())
{