From: Matt Corallo Date: Thu, 12 May 2022 20:42:23 +0000 (+0000) Subject: Don't use -mcpu=native on aarch64-macos X-Git-Tag: v0.0.108.0~2^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=commitdiff_plain;h=ba8a004783d52b23305025a5950a4bd2512d959c Don't use -mcpu=native on aarch64-macos --- diff --git a/genbindings.sh b/genbindings.sh index 25bf60f..62719fc 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -70,6 +70,10 @@ case "$ENV_TARGET" in export RUSTFLAGS="$BASE_RUSTFLAGS -C target-cpu=sandybridge" export CFLAGS_$ENV_TARGET="$BASE_HOST_CFLAGS -march=sandybridge -mcpu=sandybridge -mtune=sandybridge" ;; + "aarch64_apple_darwin") + export RUSTFLAGS="$BASE_RUSTFLAGS -C target-cpu=apple-a14" + export CFLAGS_$ENV_TARGET="$BASE_HOST_CFLAGS -mcpu=apple-a14" + ;; *) # Assume this isn't targeted at another host and build for the host's CPU. export RUSTFLAGS="$BASE_RUSTFLAGS -C target-cpu=native"