Disable threads for os:any (#21425)

This commit is contained in:
Francis Thérien 2023-02-24 03:07:35 -05:00 • committed by GitHub
commit 7837e57e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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):