+GnuCompiler::GnuCompiler(Builder &b, const Architecture &a, const string &t, const string &c):
+ Tool(b, a, t)
+{
+ string command = c;
+ if(architecture->is_cross())
+ command = format("%s-%s", architecture->get_cross_prefix(), command);
+ executable = builder.get_vfs().find_binary(command);
+
+ if(architecture->is_native())
+ system_path.push_back("/usr/include");
+ else
+ system_path.push_back("/usr/"+architecture->get_cross_prefix()+"/include");
+}