config nims avoid emit avx512f instructions on Linux

This commit is contained in:
Ivan FB 2026-04-04 10:53:33 +02:00
parent d35f44d156
commit 9442962d42
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -57,7 +57,7 @@ else:
if not defined(android):
switch("passC", "-march=native")
switch("passL", "-march=native")
if defined(windows):
if defined(windows) or defined(linux):
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
# ("-fno-asynchronous-unwind-tables" breaks Nim's exception raising, sometimes)
switch("passC", "-mno-avx512f")