undefine C symbols in JS backend [backport:1.6] (#19437)
fix #19330; fix #19059
This commit is contained in:
parent
33bfe5b12c
commit
7b09fd70ab
3 changed files with 11 additions and 3 deletions
|
|
@ -64,7 +64,8 @@ proc loadConfigsAndProcessCmdLine*(self: NimProg, cache: IdentCache; conf: Confi
|
|||
if conf.cmd == cmdNimscript: return false
|
||||
# now process command line arguments again, because some options in the
|
||||
# command line can overwrite the config file's settings
|
||||
extccomp.initVars(conf)
|
||||
if conf.backend != backendJs: # bug #19059
|
||||
extccomp.initVars(conf)
|
||||
self.processCmdLine(passCmd2, "", conf)
|
||||
if conf.cmd == cmdNone:
|
||||
rawMessage(conf, errGenerated, "command missing")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue