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 17:34:45 +0100
committerAraq <rumpf_a@web.de>2011-11-27 17:34:45 +0100
commit7832af187afa60fee37ab6e598f822b6a6ba6025 (patch)
tree8423c13cfea40ddece90c45233f030773711f686 /compiler/nimrod.nim
parent020a10927abb248bf1b5f0df5b2658c423beda80 (diff)
downloadNim-7832af187afa60fee37ab6e598f822b6a6ba6025.tar.gz
argument passing with --run option works again
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim
index b71929693..becf2430f 100755
--- a/compiler/nimrod.nim
+++ b/compiler/nimrod.nim
@@ -45,12 +45,12 @@ proc ProcessCmdLine(pass: TCmdLinePass) =
           options.commandArgs.add p.key
 
           if options.projectName == "":
-            options.projectName = unixToNativePath(p.key) # BUGFIX for portable build scripts
+            # support UNIX style filenames anywhere for portable build scripts:
+            options.projectName = unixToNativePath(p.key)
+            arguments = cmdLineRest(p)
           
-  if pass == passCmd2: 
-    arguments = cmdLineRest(p)
-    echo "Setting args to ", arguments
-    if optRun notin gGlobalOptions and arguments != "": 
+  if pass == passCmd2:
+    if optRun notin gGlobalOptions and arguments != "":
       rawMessage(errArgsNeedRunOption, [])
   
 proc prependCurDir(f: string): string =