]> git.tdb.fi Git - builder.git/blobdiff - source/gnuccompiler.cpp
Recent versions of sigc++ require C++11
[builder.git] / source / gnuccompiler.cpp
index 8fc8b6c9da626d3d45344598cbf774fc4132bd50..0210a6c4e4e152e2713854a2beebc38972b1e915 100644 (file)
@@ -4,13 +4,20 @@
 using namespace std;
 using namespace Msp;
 
-GnuCCompiler::GnuCCompiler(Builder &b):
-       GnuCompiler(b, "CC", "gcc")
+GnuCCompiler::GnuCCompiler(Builder &b, const Architecture &a, const FS::Path &sysroot):
+       GnuCompiler(b, a, "CC", sysroot)
 {
+       set_command("gcc", true);
        input_suffixes.push_back(".c");
+       aux_suffixes.push_back(".h");
 }
 
 Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
 {
        return new CSourceFile(builder, comp, path);
 }
+
+Target *GnuCCompiler::create_source(const FS::Path &path) const
+{
+       return new CSourceFile(builder, path);
+}