1 #include "gnuobjccompiler.h"
2 #include "objcsourcefile.h"
6 GnuObjCCompiler::GnuObjCCompiler(Builder &b, const Architecture &a, const FS::Path &sysroot):
7 GnuCompiler(b, a, "OBJC", sysroot)
9 set_command("gcc", true);
10 input_suffixes.push_back(".m");
11 build_info.libs.push_back("objc");
14 Target *GnuObjCCompiler::create_source(const Component &comp, const FS::Path &path) const
16 return new ObjCSourceFile(builder, comp, path);
19 Target *GnuObjCCompiler::create_source(const FS::Path &path) const
21 return new ObjCSourceFile(builder, path);