summary refs log tree commit diff stats
path: root/rod/nimrod.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-02-13 03:39:11 +0100
committerAraq <rumpf_a@web.de>2011-02-13 03:39:11 +0100
commit627e192f64fbfadb6db48ae31cf518973d380928 (patch)
treebf4bfe805660ffe234159d52927ba68e96e49e84 /rod/nimrod.nim
parent5b28d08203ba36e84c8e381761db182c0393d07f (diff)
downloadNim-627e192f64fbfadb6db48ae31cf518973d380928.tar.gz
basic continue after error works; interactive mode more useful
Diffstat (limited to 'rod/nimrod.nim')
-rwxr-xr-xrod/nimrod.nim23
1 files changed, 12 insertions, 11 deletions
diff --git a/rod/nimrod.nim b/rod/nimrod.nim
index 5eac2db43..4548a0186 100755
--- a/rod/nimrod.nim
+++ b/rod/nimrod.nim
@@ -68,17 +68,18 @@ proc HandleCmdLine() =
     ProcessCmdLine(passCmd2, command, filename)
     MainCommand(command, filename)
     if gVerbosity >= 2: echo(GC_getStatistics())
-    when hasTinyCBackend:
-      if gCmd == cmdRun:
-        tccgen.run()
-    if gCmd notin {cmdInterpret, cmdRun} and msgs.gErrorCounter == 0: 
-      rawMessage(hintSuccessX, [$gLinesCompiled, $(getTime() - start)])
-    if optRun in gGlobalOptions: 
-      when defined(unix): 
-        var prog = "./" & quoteIfContainsWhite(changeFileExt(filename, ""))
-      else: 
-        var prog = quoteIfContainsWhite(changeFileExt(filename, ""))
-      execExternalProgram(prog & ' ' & arguments)
+    if msgs.gErrorCounter == 0:
+      when hasTinyCBackend:
+        if gCmd == cmdRun:
+          tccgen.run()
+      if gCmd notin {cmdInterpret, cmdRun}: 
+        rawMessage(hintSuccessX, [$gLinesCompiled, $(getTime() - start)])
+      if optRun in gGlobalOptions: 
+        when defined(unix): 
+          var prog = "./" & quoteIfContainsWhite(changeFileExt(filename, ""))
+        else: 
+          var prog = quoteIfContainsWhite(changeFileExt(filename, ""))
+        execExternalProgram(prog & ' ' & arguments)
 
 cmdLineInfo = newLineInfo("command line", - 1, - 1)
 condsyms.InitDefines()