diff options
author | Araq <rumpf_a@web.de> | 2015-02-09 22:29:20 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-02-09 22:29:20 +0100 |
commit | 703633bf0c34b9f041a5307c6a80138db38adf84 (patch) | |
tree | d3612da12ed54dc241d8e005e7e028553b705881 | |
parent | 629bbf5ebd5a426b5073339aa57db1f7a855b903 (diff) | |
download | Nim-703633bf0c34b9f041a5307c6a80138db38adf84.tar.gz |
stop after first failing C compilation for --parallelBuild:1
-rw-r--r-- | compiler/extccomp.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 8e40cca39..1083b7590 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -626,7 +626,9 @@ proc callCCompiler*(projectfile: string) = if gNumberOfProcessors == 0: gNumberOfProcessors = countProcessors() var res = 0 if gNumberOfProcessors <= 1: - for i in countup(0, high(cmds)): res = max(execWithEcho(cmds[i]), res) + for i in countup(0, high(cmds)): + res = execWithEcho(cmds[i]) + if res != 0: rawMessage(errExecutionOfProgramFailed, []) elif optListCmd in gGlobalOptions or gVerbosity > 1: res = execProcesses(cmds, {poEchoCmd, poUseShell, poParentStreams}, gNumberOfProcessors) |