+ if(tag=="CC")
+ {
+ input_suffixes.push_back(".c");
+ aux_suffixes.push_back(".h");
+ }
+ else if(tag=="CXX")
+ {
+ input_suffixes.push_back(".cpp");
+ input_suffixes.push_back(".cc");
+ aux_suffixes.push_back(".hpp");
+ }
+ else if(tag=="OBJC")
+ {
+ input_suffixes.push_back(".m");
+ build_info.libs.push_back("objc");
+ }
+ else
+ throw invalid_argument("GnuCompiler::GnuCompiler");
+
+ set_command((tag=="CXX" ? "g++" : "gcc"), true);
+
+ if(!sysroot.empty())
+ build_info.sysroot = sysroot;
+}
+
+Target *GnuCompiler::create_source(const Component &comp, const FS::Path &path) const
+{
+ if(tag=="OBJC")
+ return new ObjCSourceFile(builder, comp, path);
+ else
+ return new CSourceFile(builder, comp, path);
+}
+
+Target *GnuCompiler::create_source(const FS::Path &path) const
+{
+ if(tag=="OBJC")
+ return new ObjCSourceFile(builder, path);