NimScript: --threads:on works in a nims file

This commit is contained in:
Araq
2015-09-30 17:18:41 +02:00
parent 8dad20fe38
commit dd2225fe07

View File

@@ -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")