X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnuccompiler.cpp;h=7089a26ec341a1dfe3e0e8c2c5b18a3e5755d4b3;hb=c194bac9d508999c046a1f56c80b9419f77a8590;hp=8fc8b6c9da626d3d45344598cbf774fc4132bd50;hpb=7e5ac6af8987bf12f3e338d00e96e8cb74f3534b;p=builder.git diff --git a/source/gnuccompiler.cpp b/source/gnuccompiler.cpp index 8fc8b6c..7089a26 100644 --- a/source/gnuccompiler.cpp +++ b/source/gnuccompiler.cpp @@ -4,13 +4,19 @@ 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", "gcc") { 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); +}