diff options
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index f90d79d5b..6633c1aa2 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -469,9 +469,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; defineSymbol(conf.symbols, "gcmarkandsweep") of "destructors", "arc": conf.selectedGC = gcArc - when true: - if conf.cmd != cmdCompileToCpp: - conf.exc = excGoto + if conf.cmd != cmdCompileToCpp: + conf.exc = excGoto defineSymbol(conf.symbols, "gcdestructors") defineSymbol(conf.symbols, "gcarc") incl conf.globalOptions, optSeqDestructors @@ -481,9 +480,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; defineSymbol(conf.symbols, "nimV2") of "orc": conf.selectedGC = gcOrc - when true: - if conf.cmd != cmdCompileToCpp: - conf.exc = excGoto + if conf.cmd != cmdCompileToCpp: + conf.exc = excGoto defineSymbol(conf.symbols, "gcdestructors") defineSymbol(conf.symbols, "gcorc") incl conf.globalOptions, optSeqDestructors |