diff options
author | flywind <xzsflywind@gmail.com> | 2022-01-13 15:02:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 08:02:41 +0100 |
commit | 9a32905d89d23e423bca2d0ce643b9331a6741c0 (patch) | |
tree | 04cdc24bfc31cb8d9e34a37a6da516e3fc2a0321 | |
parent | 9888a29c3de09c73202b2a955e09e2a7b5e56ea4 (diff) | |
download | Nim-9a32905d89d23e423bca2d0ce643b9331a6741c0.tar.gz |
nimscript ignore the threads option (#19370)
because nimscript doesn't support threads and causes troubles when the threads option is on
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index c4df46bc2..8e79a4477 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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) |