mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-27 14:58:46 +00:00
Apple M1: disable -march=native (#2759)
This commit is contained in:
parent
30cd8c79d8
commit
c4bf4f8fff
@ -46,7 +46,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.
|
||||
if defined(disableMarchNative):
|
||||
#
|
||||
# Apple's Clang can't handle "-march=native" on M1: https://github.com/status-im/nimbus-eth2/issues/2758
|
||||
if defined(disableMarchNative) or (defined(macosx) and defined(arm64)):
|
||||
if defined(i386) or defined(amd64):
|
||||
switch("passC", "-msse3")
|
||||
switch("passL", "-msse3")
|
||||
|
Loading…
x
Reference in New Issue
Block a user