mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-04 10:43:40 +00:00
Revert "disableMarchNative: also disable ADX in BLST (#2175)"
This reverts commit 6cfe7de6b0ef83517a3b1fe604c16ec98dac1a01. It's useless, since "-madx" will not be enabled without "-march=native".
This commit is contained in:
parent
f49fcb9df3
commit
07ea1cd177
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user