X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnuccompiler.cpp;h=0210a6c4e4e152e2713854a2beebc38972b1e915;hb=cea2680b64eb10790f3b88a97bd0a4ed29d8a3b0;hp=5c2141322365c481bddd60f029819f9a45cdb7a0;hpb=dceec8d95c63aaf4d8d4b367c9846caf9e32a6bf;p=builder.git diff --git a/source/gnuccompiler.cpp b/source/gnuccompiler.cpp index 5c21413..0210a6c 100644 --- a/source/gnuccompiler.cpp +++ b/source/gnuccompiler.cpp @@ -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, const FS::Path &sysroot): + GnuCompiler(b, a, "CC", sysroot) { + 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); +}