* fix #17286 nim check -b:js works * fix
This commit is contained in:
parent
152dab0983
commit
a77ffdb7ea
2 changed files with 18 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ proc commandCheck(graph: ModuleGraph) =
|
|||
if optWasNimscript in conf.globalOptions:
|
||||
defineSymbol(conf.symbols, "nimscript")
|
||||
defineSymbol(conf.symbols, "nimconfig")
|
||||
elif conf.backend == backendJs:
|
||||
setTarget(conf.target, osJS, cpuJS)
|
||||
semanticPasses(graph) # use an empty backend for semantic checking only
|
||||
compileProject(graph)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue