nice error message
This commit is contained in:
parent
c5b9486455
commit
abf511245a
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
## Implements Nimrod's 'spawn'.
|
## Implements Nimrod's 'spawn'.
|
||||||
|
|
||||||
|
when not compileOption("threads"):
|
||||||
|
{.error: "Threadpool requires --threads:on option.".}
|
||||||
|
|
||||||
import cpuinfo, cpuload, locks
|
import cpuinfo, cpuload, locks
|
||||||
|
|
||||||
{.push stackTrace:off.}
|
{.push stackTrace:off.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue