]> git.tdb.fi Git - builder.git/blob - source/gnuccompiler.cpp
Make tools architecture-aware and restore cross-compilation functionality
[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):
8         GnuCompiler(b, a, "CC", "gcc")
9 {
10         input_suffixes.push_back(".c");
11         aux_suffixes.push_back(".h");
12 }
13
14 Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const
15 {
16         return new CSourceFile(builder, comp, path);
17 }
18
19 Target *GnuCCompiler::create_source(const FS::Path &path) const
20 {
21         return new CSourceFile(builder, path);
22 }