X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnuccompiler.cpp;h=0210a6c4e4e152e2713854a2beebc38972b1e915;hb=74ea8208bb1aa1d9afc9657a4cdfac6714241887;hp=8fc8b6c9da626d3d45344598cbf774fc4132bd50;hpb=7e5ac6af8987bf12f3e338d00e96e8cb74f3534b;p=builder.git diff --git a/source/gnuccompiler.cpp b/source/gnuccompiler.cpp index 8fc8b6c..0210a6c 100644 --- a/source/gnuccompiler.cpp +++ b/source/gnuccompiler.cpp @@ -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); +}