NimScript: --threads:on works in a nims file
This commit is contained in:
parent
8dad20fe38
commit
dd2225fe07
1 changed files with 1 additions and 1 deletions
|
|
@ -1256,7 +1256,7 @@ proc compileOption*(option, arg: string): bool {.
|
|||
## echo "compiled with optimization for size and uses Boehm's GC"
|
||||
|
||||
const
|
||||
hasThreadSupport = compileOption("threads")
|
||||
hasThreadSupport = compileOption("threads") and not defined(nimscript)
|
||||
hasSharedHeap = defined(boehmgc) or defined(gogc) # don't share heaps; every thread has its own
|
||||
taintMode = compileOption("taintmode")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue