add debugging to C++

This commit is contained in:
parrt 2016-12-14 11:22:47 -08:00
parent 6a52e3061d
commit 3f00594313
1 changed files with 9 additions and 1 deletions

View File

@ -550,7 +550,7 @@ public class BaseCppTest implements RuntimeTestSupport {
try {
String command[] = { "cmake", ".", /*"-DCMAKE_CXX_COMPILER=clang++",*/ "-DCMAKE_BUILD_TYPE=release" };
if (runCommand(command, runtimePath, "antlr runtime cmake", true) == null) {
if (runCommand(command, runtimePath, "antlr runtime cmake", false) == null) {
return false;
}
}
@ -565,6 +565,14 @@ public class BaseCppTest implements RuntimeTestSupport {
}
catch (Exception e) {
System.err.println("can't compile antlr cpp runtime");
try {
String command[] = { "ls", "-la" };
String output = runCommand(command, runtimePath + "/dist/", "printing library folder content", true);
System.out.println(output);
}
catch (Exception e2) {
System.err.println("can't even list folder content");
}
}
/* for debugging