mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
@@ -649,6 +649,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||
of "backend", "b":
|
||||
let backend = parseEnum(arg.normalize, TBackend.default)
|
||||
if backend == TBackend.default: localError(conf, info, "invalid backend: '$1'" % arg)
|
||||
if backend == backendJs: # bug #21209
|
||||
conf.globalOptions.excl {optThreadAnalysis, optThreads}
|
||||
conf.backend = backend
|
||||
of "doccmd": conf.docCmd = arg
|
||||
of "define", "d":
|
||||
|
||||
6
tests/js/t21209.nim
Normal file
6
tests/js/t21209.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
discard """
|
||||
action: "compile"
|
||||
cmd: "nim check --warning[UnusedImport]:off $file"
|
||||
"""
|
||||
|
||||
import std/times
|
||||
1
tests/js/t21209.nims
Normal file
1
tests/js/t21209.nims
Normal file
@@ -0,0 +1 @@
|
||||
--b:js
|
||||
Reference in New Issue
Block a user