Added support for --genDeps on JS backend (#10320)
This commit is contained in:
parent
ef769e20b3
commit
7920dc2898
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ proc commandJsonScript(graph: ModuleGraph) =
|
||||||
|
|
||||||
when not defined(leanCompiler):
|
when not defined(leanCompiler):
|
||||||
proc commandCompileToJS(graph: ModuleGraph) =
|
proc commandCompileToJS(graph: ModuleGraph) =
|
||||||
|
let conf = graph.config
|
||||||
#incl(gGlobalOptions, optSafeCode)
|
#incl(gGlobalOptions, optSafeCode)
|
||||||
setTarget(graph.config.target, osJS, cpuJS)
|
setTarget(graph.config.target, osJS, cpuJS)
|
||||||
#initDefines()
|
#initDefines()
|
||||||
|
|
@ -100,6 +101,8 @@ when not defined(leanCompiler):
|
||||||
semanticPasses(graph)
|
semanticPasses(graph)
|
||||||
registerPass(graph, JSgenPass)
|
registerPass(graph, JSgenPass)
|
||||||
compileProject(graph)
|
compileProject(graph)
|
||||||
|
if optGenScript in graph.config.globalOptions:
|
||||||
|
writeDepsFile(graph, toGeneratedFile(conf, conf.projectFull, ""))
|
||||||
|
|
||||||
proc interactivePasses(graph: ModuleGraph) =
|
proc interactivePasses(graph: ModuleGraph) =
|
||||||
initDefines(graph.config.symbols)
|
initDefines(graph.config.symbols)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue