Skip to content

Commit fa18030

Browse files
committed
The correct LLVM target for aarch64-apple-darwin is arm64-... (as with ios)
1 parent 982c552 commit fa18030

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_target/src/spec/aarch64_apple_darwin.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ pub fn target() -> Target {
1414
// Clang automatically chooses a more specific target based on
1515
// MACOSX_DEPLOYMENT_TARGET. To enable cross-language LTO to work
1616
// correctly, we do too.
17-
let arch = "aarch64";
18-
let llvm_target = super::apple_base::macos_llvm_target(&arch);
17+
let llvm_target = super::apple_base::macos_llvm_target("arm64");
1918

2019
Target {
2120
llvm_target,
2221
pointer_width: 64,
2322
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
24-
arch: arch.to_string(),
23+
arch: "aarch64".to_string(),
2524
options: TargetOptions {
2625
mcount: "\u{1}mcount".to_string(),
2726
frame_pointer: FramePointer::NonLeaf,

0 commit comments

Comments
 (0)