mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
nice error message
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
|
||||
## Implements Nimrod's 'spawn'.
|
||||
|
||||
when not compileOption("threads"):
|
||||
{.error: "Threadpool requires --threads:on option.".}
|
||||
|
||||
import cpuinfo, cpuload, locks
|
||||
|
||||
{.push stackTrace:off.}
|
||||
|
||||
Reference in New Issue
Block a user