parent
24d297b437
commit
76e4f8afb1
3 changed files with 9 additions and 0 deletions
|
|
@ -649,6 +649,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
of "backend", "b":
|
of "backend", "b":
|
||||||
let backend = parseEnum(arg.normalize, TBackend.default)
|
let backend = parseEnum(arg.normalize, TBackend.default)
|
||||||
if backend == TBackend.default: localError(conf, info, "invalid backend: '$1'" % arg)
|
if backend == TBackend.default: localError(conf, info, "invalid backend: '$1'" % arg)
|
||||||
|
if backend == backendJs: # bug #21209
|
||||||
|
conf.globalOptions.excl {optThreadAnalysis, optThreads}
|
||||||
conf.backend = backend
|
conf.backend = backend
|
||||||
of "doccmd": conf.docCmd = arg
|
of "doccmd": conf.docCmd = arg
|
||||||
of "define", "d":
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue