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

@ -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"