the mainmodule option has effect only when no explicit module is given

This commit is contained in:
Zahary Karadjov 2013-01-28 00:26:49 +02:00
commit 19e795e017
5 changed files with 11 additions and 12 deletions

View file

@ -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)