stop after first failing C compilation for --parallelBuild:1
This commit is contained in:
parent
629bbf5ebd
commit
703633bf0c
1 changed files with 3 additions and 1 deletions
|
|
@ -626,7 +626,9 @@ proc callCCompiler*(projectfile: string) =
|
||||||
if gNumberOfProcessors == 0: gNumberOfProcessors = countProcessors()
|
if gNumberOfProcessors == 0: gNumberOfProcessors = countProcessors()
|
||||||
var res = 0
|
var res = 0
|
||||||
if gNumberOfProcessors <= 1:
|
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:
|
elif optListCmd in gGlobalOptions or gVerbosity > 1:
|
||||||
res = execProcesses(cmds, {poEchoCmd, poUseShell, poParentStreams},
|
res = execProcesses(cmds, {poEchoCmd, poUseShell, poParentStreams},
|
||||||
gNumberOfProcessors)
|
gNumberOfProcessors)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue