]> git.tdb.fi Git - builder.git/commitdiff
Get the executable in GnuCxxCompiler::do_prepare
authorMikko Rasa <tdb@tdb.fi>
Wed, 1 Oct 2014 21:46:42 +0000 (00:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 1 Oct 2014 21:46:42 +0000 (00:46 +0300)
It's needed for querying the compiler version, and Tool won't get it
until after do_prepare.

source/gnucxxcompiler.cpp

index 55f7109e7b05470bb03ac690d98a970ce0323bf4..cff2c0c23671c0be09b952bcf5aa8875adeb787a 100644 (file)
@@ -52,6 +52,7 @@ Target *GnuCxxCompiler::create_source(const FS::Path &path) const
 void GnuCxxCompiler::do_prepare()
 {
        GnuCompiler::do_prepare();
+       executable = builder.get_vfs().find_binary(command);
        if(executable)
                query_version();
 }