summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/typedthreads.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/typedthreads.nim b/lib/std/typedthreads.nim
index b45ce8a61..8359ca353 100644
--- a/lib/std/typedthreads.nim
+++ b/lib/std/typedthreads.nim
@@ -45,6 +45,8 @@ when defined(nimPreviewSlimSystem):
 when defined(genode):
   import genode/env
 
+when hostOS == "any":
+  {.error: "Threads not implemented for os:any. Please compile with --threads:off.".}
 
 when hasAllocStack or defined(zephyr) or defined(freertos) or defined(nuttx) or
     defined(cpu16) or defined(cpu8):