Revert "disableMarchNative: also disable ADX in BLST (#2175)"

This reverts commit 6cfe7de6b0.

It's useless, since "-madx" will not be enabled without "-march=native".
This commit is contained in:
Ștefan Talpalaru 2020-12-11 16:51:09 +01:00
parent f49fcb9df3
commit 07ea1cd177
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 6 deletions

View File

@ -40,13 +40,9 @@ if defined(windows):
# and larger arithmetic use cases, along with register starvation issues. When
# engineering a more portable binary release, this should be tweaked but still
# use at least -msse2 or -msse3.
#
# Since ADX is only available on new CPUs, we want to disable it for generic
# binaries (BLST autodetects it with no other way to opt-out than at the C
# compiler level).
if defined(disableMarchNative):
switch("passC", "-msse3 -mno-adx")
switch("passL", "-msse3 -mno-adx")
switch("passC", "-msse3")
switch("passL", "-msse3")
else:
switch("passC", "-march=native")
switch("passL", "-march=native")