summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-27 16:32:05 +0100
committerAraq <rumpf_a@web.de>2011-11-27 16:32:05 +0100
commit020a10927abb248bf1b5f0df5b2658c423beda80 (patch)
tree56405873bc2a57f9e2501a99a4a194da2783a7ed /compiler/nimrod.nim
parent8e1313d237cfbfff4aff751554c7c09ad1bf34c9 (diff)
downloadNim-020a10927abb248bf1b5f0df5b2658c423beda80.tar.gz
fixes #31
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim
index 87a9b1a75..b71929693 100755
--- a/compiler/nimrod.nim
+++ b/compiler/nimrod.nim
@@ -49,6 +49,7 @@ proc ProcessCmdLine(pass: TCmdLinePass) =
           
   if pass == passCmd2: 
     arguments = cmdLineRest(p)
+    echo "Setting args to ", arguments
     if optRun notin gGlobalOptions and arguments != "": 
       rawMessage(errArgsNeedRunOption, [])
   
@@ -91,7 +92,8 @@ proc HandleCmdLine() =
         rawMessage(hintSuccessX, [$gLinesCompiled, 
                    formatFloat(epochTime() - start, ffDecimal, 3)])
       if optRun in gGlobalOptions: 
-        var ex = quoteIfContainsWhite(changeFileExt(projectName, "").prependCurDir)
+        var ex = quoteIfContainsWhite(
+            changeFileExt(projectFullPath, "").prependCurDir)
         execExternalProgram(ex & ' ' & arguments)
 
 #GC_disableMarkAndSweep()