X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucompiler.cpp;h=87fd6623ee91a58ce606d905a95ee8eace56532e;hb=f75a99316e896cf1e424a489ce360a67844d86b0;hp=5ecd29307fc9ac8339cc95090dddaf228e6beaed;hpb=ca18323d45d67243773b03668e79c715aa976441;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 5ecd293..87fd662 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -17,6 +17,8 @@ GnuCompiler::GnuCompiler(Builder &b, const string &t, const string &n): Tool(b, t), name(n) { + executable = builder.get_vfs().find_binary(name); + const Architecture &arch = builder.get_current_arch(); if(arch.is_native()) system_path.push_back("/usr/include"); @@ -40,7 +42,7 @@ Task *GnuCompiler::run(const Target &target) const const Component &comp = object.get_component(); ExternalTask::Arguments argv; - argv.push_back(name); + argv.push_back(executable->get_path().str()); argv.push_back("-c"); const BuildInfo &binfo = comp.get_build_info();