]> git.tdb.fi Git - builder.git/blob - source/gnuccompiler.cpp
0210a6c4e4e152e2713854a2beebc38972b1e915
[builder.git] / source / gnuccompiler.cpp
1 #include "csourcefile.h"
2 #include "gnuccompiler.h"
3
4 using namespace std;
5 using namespace Msp;
6
7 GnuCCompiler::GnuCCompiler(Builder &b, const Architecture &a, const FS::Path &sysroot):
8         GnuCompiler(b, a, "CC", sysroot)
9 {
10         set_command("gcc", true);
11         input_suffixes.push_back(".c");
12         aux_suffixes.push_back(".h");
13 }
14
15 Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
16 {
17         return new CSourceFile(builder, comp, path);
18 }
19
20 Target *GnuCCompiler::create_source(const FS::Path &path) const
21 {
22         return new CSourceFile(builder, path);
23 }