Disable threads for os:any (#21425)
This commit is contained in:
parent
bbb6d2c69d
commit
7837e57e93
2 changed files with 7 additions and 0 deletions
|
|
@ -100,6 +100,11 @@ nimblepath="$home/.nimble/pkgs/"
|
||||||
gcc.options.always %= "${gcc.options.always} -fsanitize=null -fsanitize-undefined-trap-on-error"
|
gcc.options.always %= "${gcc.options.always} -fsanitize=null -fsanitize-undefined-trap-on-error"
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
# Turn off threads support when compiling for bare-metal targets (--os:any)
|
||||||
|
@if any:
|
||||||
|
threads:off
|
||||||
|
@end
|
||||||
|
|
||||||
@if unix and mingw:
|
@if unix and mingw:
|
||||||
# Cross compile for Windows from Linux/OSX using MinGW
|
# Cross compile for Windows from Linux/OSX using MinGW
|
||||||
i386.windows.gcc.exe = "i686-w64-mingw32-gcc"
|
i386.windows.gcc.exe = "i686-w64-mingw32-gcc"
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ when defined(nimPreviewSlimSystem):
|
||||||
when defined(genode):
|
when defined(genode):
|
||||||
import genode/env
|
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
|
when hasAllocStack or defined(zephyr) or defined(freertos) or defined(nuttx) or
|
||||||
defined(cpu16) or defined(cpu8):
|
defined(cpu16) or defined(cpu8):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue