diff options
author | miere43 <x.miere@gmail.com> | 2016-07-30 18:25:48 +0300 |
---|---|---|
committer | miere43 <x.miere@gmail.com> | 2016-07-30 18:31:01 +0300 |
commit | f16140fc9599e3c12a3dfe912cac1819c04174d7 (patch) | |
tree | dad7392b0a3240fd0887b190ee5e75f7278a9c32 /compiler | |
parent | dfee2bf66e80c950b7aa2be62dc0deab74aa56e7 (diff) | |
download | Nim-f16140fc9599e3c12a3dfe912cac1819c04174d7.tar.gz |
fix #4417, update news
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 48926f602..de1197292 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -217,6 +217,15 @@ proc testCompileOptionArg*(switch, arg: string, info: TLineInfo): bool = of "none": result = gOptions * {optOptimizeSpeed, optOptimizeSize} == {} else: localError(info, errNoneSpeedOrSizeExpectedButXFound, arg) of "verbosity": result = $gVerbosity == arg + of "app": + case arg.normalize + of "gui": result = contains(gGlobalOptions, optGenGuiApp) + of "console": result = not contains(gGlobalOptions, optGenGuiApp) + of "lib": result = contains(gGlobalOptions, optGenDynLib) and + not contains(gGlobalOptions, optGenGuiApp) + of "staticlib": result = contains(gGlobalOptions, optGenStaticLib) and + not contains(gGlobalOptions, optGenGuiApp) + else: localError(info, errGuiConsoleOrLibExpectedButXFound, arg) else: invalidCmdLineOption(passCmd1, switch, info) proc testCompileOption*(switch: string, info: TLineInfo): bool = |