X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnuccompiler.cpp;h=7089a26ec341a1dfe3e0e8c2c5b18a3e5755d4b3;hb=09366b5da31707942f66e386cd0c07e5ece17b7f;hp=5c2141322365c481bddd60f029819f9a45cdb7a0;hpb=dceec8d95c63aaf4d8d4b367c9846caf9e32a6bf;p=builder.git diff --git a/source/gnuccompiler.cpp b/source/gnuccompiler.cpp index 5c21413..7089a26 100644 --- a/source/gnuccompiler.cpp +++ b/source/gnuccompiler.cpp @@ -4,8 +4,8 @@ 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"); @@ -15,3 +15,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); +}