Locks modules should give a compile error when threads are not enabled. (#12231)

* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
This commit is contained in:
Ray Imber 2019-09-26 06:45:50 -07:00 • committed by Andreas Rumpf
commit 9dd297f613
4 changed files with 13 additions and 0 deletions

View file

@ -558,6 +558,10 @@ const disabledFilesDefault = @[
"setimpl.nim",
"hashcommon.nim",
# Requires compiling with '--threads:on`
"sharedlist.nim",
"sharedtables.nim",
# Error: undeclared identifier: 'hasThreadSupport'
"ioselectors_epoll.nim",
"ioselectors_kqueue.nim",