diff options
author | Francis Thérien <frtherien@gmail.com> | 2023-02-24 03:07:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 09:07:35 +0100 |
commit | 7837e57e93b1cb89f5a80a779e853bad070de777 (patch) | |
tree | 46cbd2385124099ba105c28e49e87cf3ba57ecdb /config | |
parent | bbb6d2c69d1b2bca9987c708ebc6ffd2479bb822 (diff) | |
download | Nim-7837e57e93b1cb89f5a80a779e853bad070de777.tar.gz |
Disable threads for os:any (#21425)
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index 973de077a..ef93ec99e 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -100,6 +100,11 @@ nimblepath="$home/.nimble/pkgs/" gcc.options.always %= "${gcc.options.always} -fsanitize=null -fsanitize-undefined-trap-on-error" @end +# Turn off threads support when compiling for bare-metal targets (--os:any) +@if any: + threads:off +@end + @if unix and mingw: # Cross compile for Windows from Linux/OSX using MinGW i386.windows.gcc.exe = "i686-w64-mingw32-gcc" |