summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2020-07-25 15:52:29 +0800
committerGitHub <noreply@github.com>2020-07-25 09:52:29 +0200
commit2dddf32726a1472d322644ec1a66caf8c547360e (patch)
tree00a0d6aad20fb9211410a799d4da4012ae5f30d2
parent9746868832df3ef4b40597fb84f58900b2336496 (diff)
downloadNim-2dddf32726a1472d322644ec1a66caf8c547360e.tar.gz
fix #14684 (#15059)
-rw-r--r--compiler/commands.nim2
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