]> git.tdb.fi Git - builder.git/blobdiff - source/gnuccompiler.cpp
Support boolean logic in conditions
[builder.git] / source / gnuccompiler.cpp
index 5c2141322365c481bddd60f029819f9a45cdb7a0..cedea1050bb7390df3d6e3424c2bcb916a2f0c75 100644 (file)
@@ -4,9 +4,10 @@
 using namespace std;
 using namespace Msp;
 
-GnuCCompiler::GnuCCompiler(Builder &b):
-       GnuCompiler(b, "CC", "gcc")
+GnuCCompiler::GnuCCompiler(Builder &b, const Architecture &a):
+       GnuCompiler(b, a, "CC")
 {
+       set_command("gcc", true);
        input_suffixes.push_back(".c");
        aux_suffixes.push_back(".h");
 }
@@ -15,3 +16,8 @@ Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path)
 {
        return new CSourceFile(builder, comp, path);
 }
+
+Target *GnuCCompiler::create_source(const FS::Path &path) const
+{
+       return new CSourceFile(builder, path);
+}