summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorFrancis Thérien <frtherien@gmail.com>2023-02-24 03:07:35 -0500
committerGitHub <noreply@github.com>2023-02-24 09:07:35 +0100
commit7837e57e93b1cb89f5a80a779e853bad070de777 (patch)
tree46cbd2385124099ba105c28e49e87cf3ba57ecdb /lib
parentbbb6d2c69d1b2bca9987c708ebc6ffd2479bb822 (diff)
downloadNim-7837e57e93b1cb89f5a80a779e853bad070de777.tar.gz
Disable threads for os:any (#21425)
Diffstat (limited to 'lib')
-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):