diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index 5b67a10ac4..dab261da78 100755 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -77,4 +77,4 @@ when compileOption("gc", "v2"): GC_disableMarkAndSweep() condsyms.InitDefines() HandleCmdLine() -quit(options.gExitcode) +quit(int8(msgs.gErrorCounter > 0))