]> git.tdb.fi Git - builder.git/blob - source/gnuobjccompiler.cpp
Combine the gnu and clang toolchains into SystemToolchain
[builder.git] / source / gnuobjccompiler.cpp
1 #include "gnuobjccompiler.h"
2 #include "objcsourcefile.h"
3
4 using namespace Msp;
5
6 GnuObjCCompiler::GnuObjCCompiler(Builder &b, const Architecture &a, const FS::Path &sysroot):
7         GnuCompiler(b, a, "OBJC", sysroot)
8 {
9         set_command("gcc", true);
10         input_suffixes.push_back(".m");
11         build_info.libs.push_back("objc");
12 }
13
14 Target *GnuObjCCompiler::create_source(const Component &comp, const FS::Path &path) const
15 {
16         return new ObjCSourceFile(builder, comp, path);
17 }
18
19 Target *GnuObjCCompiler::create_source(const FS::Path &path) const
20 {
21         return new ObjCSourceFile(builder, path);
22 }