]> git.tdb.fi Git - builder.git/blobdiff - source/gnucxxcompiler.cpp
Pass a tool hint to VirtualFileSystem::find_header
[builder.git] / source / gnucxxcompiler.cpp
index 1926a5ed14bcc3e74a17fab214152c3ce87ca2a4..cff2c0c23671c0be09b952bcf5aa8875adeb787a 100644 (file)
@@ -11,8 +11,9 @@ using namespace std;
 using namespace Msp;
 
 GnuCxxCompiler::GnuCxxCompiler(Builder &b, const Architecture &a):
-       GnuCompiler(b, a, "CXX", "g++")
+       GnuCompiler(b, a, "CXX")
 {
+       set_command("g++", true);
        input_suffixes.push_back(".cpp");
        input_suffixes.push_back(".cc");
        aux_suffixes.push_back(".hpp");
@@ -51,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();
 }