summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-01-28 00:26:49 +0200
committerZahary Karadjov <zahary@gmail.com>2013-01-28 00:26:49 +0200
commit19e795e0177889fa1a5898ce0469f79a47a3dd73 (patch)
tree41dde47101deec2a26e4f92698545ef9747b8e75 /compiler/commands.nim
parent81a3585872b1a327b62ba528addbee913d6bbe5a (diff)
downloadNim-19e795e0177889fa1a5898ce0469f79a47a3dd73.tar.gz
the `mainmodule` option has effect only when no explicit module is given
Diffstat (limited to 'compiler/commands.nim')
-rwxr-xr-xcompiler/commands.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index a26626cc4..910a8bca5 100755
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -231,8 +231,7 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) =
     options.outFile = arg
   of "mainmodule", "m":
     expectArg(switch, arg, pass, info)
-    gProjectName = arg
-    gProjectFull = gProjectPath / gProjectName
+    optMainModule = arg
   of "define", "d": 
     expectArg(switch, arg, pass, info)
     DefineSymbol(arg)