From 6b293f43bc85d5a7c0647aee155e2585aca3ec02 Mon Sep 17 00:00:00 2001 From: jm-clius Date: Mon, 28 Mar 2022 14:31:18 +0000 Subject: [PATCH] deploy: 913899d97b9060cdb68be2e43923a89b7ddac906 --- config.nims | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.nims b/config.nims index 0abfe8382..d13a75deb 100644 --- a/config.nims +++ b/config.nims @@ -25,6 +25,10 @@ if defined(windows): # use at least -msse2 or -msse3. if defined(disableMarchNative): switch("passC", "-msse3") +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-m1") + switch("passL", "-mcpu=apple-m1") else: switch("passC", "-march=native") if defined(windows):