using namespace Msp;
GnuCxxCompiler::GnuCxxCompiler(Builder &b, const Architecture &a):
- GnuCompiler(b, a, "CXX", "g++")
+ GnuCompiler(b, a, "CXX")
{
+ set_command("g++", true);
input_suffixes.push_back(".cpp");
input_suffixes.push_back(".cc");
aux_suffixes.push_back(".hpp");
-
- if(executable)
- query_version();
}
void GnuCxxCompiler::query_version()
{
return new CSourceFile(builder, path);
}
+
+void GnuCxxCompiler::do_prepare()
+{
+ GnuCompiler::do_prepare();
+ if(executable)
+ query_version();
+}