Clang doesn't seem to recognize it. This is a bit of a hack and it
would be better if ClangCompiler could handle the version check somehow,
but it's not obvious how to do that.
string exe_path = exe->get_path().str();
unsigned version = query_version(exe_path, "-dumpversion");
if(version>=0x70000)
- version = query_version(exe_path, "-dumpfullversion");
+ {
+ unsigned v = query_version(exe_path, "-dumpfullversion");
+ if(v)
+ version = v;
+ }
tool.extra_data = version;
builder.get_logger().log("tools", "%s version is %d.%d.%d", FS::basename(exe->get_path()), version>>16, (version>>8)&0xFF, version&0xFF);
}