diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-01-28 00:26:49 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-01-28 00:26:49 +0200 |
commit | 19e795e0177889fa1a5898ce0469f79a47a3dd73 (patch) | |
tree | 41dde47101deec2a26e4f92698545ef9747b8e75 /compiler/commands.nim | |
parent | 81a3585872b1a327b62ba528addbee913d6bbe5a (diff) | |
download | Nim-19e795e0177889fa1a5898ce0469f79a47a3dd73.tar.gz |
the `mainmodule` option has effect only when no explicit module is given
Diffstat (limited to 'compiler/commands.nim')
-rwxr-xr-x | compiler/commands.nim | 3 |
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) |