about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHans Kratz <hans@appfour.com>2021-08-23 08:27:08 +0200
committerHans Kratz <hans@appfour.com>2021-08-23 08:27:08 +0200
commit0ac601d03e0e0951f73d6a89cb6a5aef1905e29b (patch)
tree73500257b73f1e4408340061458563b60731797e
parent49967357c5b369aca21fdb4d44c48df3bfdaa4a3 (diff)
downloadrust-0ac601d03e0e0951f73d6a89cb6a5aef1905e29b.tar.gz
rust-0ac601d03e0e0951f73d6a89cb6a5aef1905e29b.zip
Mach-O (Macos/ios/...) LLD flavor is always LD64.
-rw-r--r--compiler/rustc_target/src/spec/apple_base.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/apple_base.rs b/compiler/rustc_target/src/spec/apple_base.rs
index cff0b3651e1..0a0c548fecd 100644
--- a/compiler/rustc_target/src/spec/apple_base.rs
+++ b/compiler/rustc_target/src/spec/apple_base.rs
@@ -1,6 +1,6 @@
 use std::env;
 
-use crate::spec::{FramePointer, SplitDebuginfo, TargetOptions};
+use crate::spec::{FramePointer, LldFlavor, SplitDebuginfo, TargetOptions};
 
 pub fn opts(os: &str) -> TargetOptions {
     // ELF TLS is only available in macOS 10.7+. If you try to compile for 10.6
@@ -35,6 +35,7 @@ pub fn opts(os: &str) -> TargetOptions {
         abi_return_struct_as_int: true,
         emit_debug_gdb_scripts: false,
         eh_frame_header: false,
+        lld_flavor: LldFlavor::Ld64,
 
         // The historical default for macOS targets is to run `dsymutil` which
         // generates a packed version of debuginfo split from the main file.