diff --git a/config.nims b/config.nims index 350232527..d43c6d7cb 100644 --- a/config.nims +++ b/config.nims @@ -25,8 +25,14 @@ 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): - switch("passC", "-msse3") + if defined(i386) or defined(amd64): + switch("passC", "-mssse3") +elif defined(macosx) and defined(arm64): + # Apple's Clang can't handle "-march=native" on M1: https://github.com/status-im/nimbus-eth2/issues/2758 + switch("passC", "-mcpu=apple-a14") + # TODO: newer Clang >=15.0 can: https://github.com/llvm/llvm-project/commit/fcca10c69aaab539962d10fcc59a5f074b73b0de else: switch("passC", "-march=native") if defined(windows): diff --git a/vendor/nim-leopard b/vendor/nim-leopard index 41cd86df5..3118d470b 160000 --- a/vendor/nim-leopard +++ b/vendor/nim-leopard @@ -1 +1 @@ -Subproject commit 41cd86df5bfa67afe7d3660e8ab0878133c8600e +Subproject commit 3118d470b9c5e64d8342991f267f9e82d763e91a