diff options
author | Bung <crc32@qq.com> | 2020-07-25 15:52:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 09:52:29 +0200 |
commit | 2dddf32726a1472d322644ec1a66caf8c547360e (patch) | |
tree | 00a0d6aad20fb9211410a799d4da4012ae5f30d2 | |
parent | 9746868832df3ef4b40597fb84f58900b2336496 (diff) | |
download | Nim-2dddf32726a1472d322644ec1a66caf8c547360e.tar.gz |
fix #14684 (#15059)
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index d0936a0c6..504550045 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -486,6 +486,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "project": processOnOffSwitchG(conf, {optWholeProject, optGenIndex}, arg, pass, info) of "gc": + if conf.backend == backendJs: + return expectArg(conf, switch, arg, pass, info) if pass in {passCmd2, passPP}: case arg.normalize |