Log compiler path and version for debugging.

This commit is contained in:
Mike Lischke 2016-11-09 10:02:42 +01:00
parent e62c267f7c
commit 5bcbea82e3
1 changed files with 9 additions and 0 deletions

View File

@ -614,6 +614,15 @@ public abstract class BaseCppTest {
// Build runtime using cmake once.
if (!runtimeBuiltOnce) {
System.out.println("Located compiler at: " + compilerPath);
ArrayList<String> args = new ArrayList<String>();
args.add(compilerPath);
args.add("--version");
ProcessBuilder builder = new ProcessBuilder(args.toArray(new String[0]));
builder.directory(new File(tmpdir));
String output = runProcess(builder, "printing compiler version");
System.out.println("Compiler version is: " + output);
runtimeBuiltOnce = true;
if (!buildRuntime()) {
System.out.println("C++ runtime build failed");