If a linking of the emulation lib fail, give more verbose error message,
printing the actual error instead of the command causing it.
@@ -731,7 +731,8 @@ def linkEmulationFuncs(inFile, fileNamePrefix):
(exitCode, output) = runCommandBuffered(command, verbose, stripOutput=False)
if exitCode != 0:
- exitWithError(1, "Error while linking emulation lib: " + command + "\n")
+ exitWithError(1, "Error while linking emulation lib: " + command
+ + ": " + output + "\n")
outputName = fileNamePrefix + "_emul_internalized.bc"
