remove echo() from compiler

This commit is contained in:
Aman Gupta 2015-10-01 13:16:18 -07:00
commit 08843c6673

View file

@ -675,9 +675,9 @@ proc callCCompiler*(projectfile: string) =
let runCb = proc (idx: int, p: Process) =
let exitCode = p.peekExitCode
if exitCode != 0:
echo p.outputStream.readAll
rawMessage(errGenerated, "execution of an external compiler program '" &
cmds[idx] & "' failed with exit code: " & $exitCode)
cmds[idx] & "' failed with exit code: " & $exitCode & "\n\n" &
p.outputStream.readAll.strip)
compileCFile(toCompile, script, cmds, prettyCmds, false)
compileCFile(externalToCompile, script, cmds, prettyCmds, true)
if optCompileOnly notin gGlobalOptions: