From d4a552a31a334ea756c9afbc49499867956b824b Mon Sep 17 00:00:00 2001 From: Josh Taylor Date: Mon, 30 Aug 2021 21:56:12 +0000 Subject: [PATCH] Add aarch64-apple-darwin to the config_fast_builds for Apple Silicon (#2739) # Objective M1 Macs / Apple Silicon / simply aarch64 needs to be specified for it to compile with zld, so users might be surprised to find that they aren't getting the benefits and see the fast compiles they might be seeing on other platforms. ## Solution - Add it? :) --- .cargo/config_fast_builds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index c5e74fefbc..eae5a85ea4 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -12,6 +12,9 @@ rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] [target.x86_64-apple-darwin] rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"] +[target.aarch64-apple-darwin] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"] + [target.x86_64-pc-windows-msvc] linker = "rust-lld.exe" rustflags = ["-Zshare-generics=n"]