diff options
author | Araq <rumpf_a@web.de> | 2014-10-19 23:59:29 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-19 23:59:29 +0200 |
commit | 1ddc42f570c0ab70b7f97222cdbd77bb49b38716 (patch) | |
tree | bde0c6155dd0957a77db6512c7bf8aade9488969 | |
parent | f09af72bd7b869703f11d632fb89ee36e7d14f32 (diff) | |
download | Nim-1ddc42f570c0ab70b7f97222cdbd77bb49b38716.tar.gz |
default to warnGcUnsafe for threads:on
-rw-r--r-- | compiler/commands.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 87e94d9c9..cea965f5c 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -393,7 +393,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) = of "linedir": processOnOffSwitch({optLineDir}, arg, pass, info) of "assertions", "a": processOnOffSwitch({optAssert}, arg, pass, info) of "deadcodeelim": processOnOffSwitchG({optDeadCodeElim}, arg, pass, info) - of "threads": processOnOffSwitchG({optThreads}, arg, pass, info) + of "threads": + processOnOffSwitchG({optThreads}, arg, pass, info) + if optThreads in gGlobalOptions: incl(gNotes, warnGcUnsafe) of "tlsemulation": processOnOffSwitchG({optTlsEmulation}, arg, pass, info) of "taintmode": processOnOffSwitchG({optTaintMode}, arg, pass, info) of "implicitstatic": |