Skip to content

Commit

Permalink
nimscript ignore the threads option (nim-lang#19370)
Browse files Browse the repository at this point in the history
because nimscript doesn't support threads and causes troubles when the threads option is on
  • Loading branch information
ringabout authored and PMunch committed Mar 28, 2022
1 parent c0feaf2 commit 1b77dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
of "linedir": processOnOffSwitch(conf, {optLineDir}, arg, pass, info)
of "assertions", "a": processOnOffSwitch(conf, {optAssert}, arg, pass, info)
of "threads":
if conf.backend == backendJs: discard
if conf.backend == backendJs or conf.cmd == cmdNimscript: discard
else: processOnOffSwitchG(conf, {optThreads}, arg, pass, info)
#if optThreads in conf.globalOptions: conf.setNote(warnGcUnsafe)
of "tlsemulation": processOnOffSwitchG(conf, {optTlsEmulation}, arg, pass, info)
Expand Down

0 comments on commit 1b77dd1

Please sign in to comment.