Skip to content

Commit 0ac601d

Browse files
committed
Mach-O (Macos/ios/...) LLD flavor is always LD64.
1 parent 4996735 commit 0ac601d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_target/src/spec/apple_base.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::env;
22

3-
use crate::spec::{FramePointer, SplitDebuginfo, TargetOptions};
3+
use crate::spec::{FramePointer, LldFlavor, SplitDebuginfo, TargetOptions};
44

55
pub fn opts(os: &str) -> TargetOptions {
66
// 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 {
3535
abi_return_struct_as_int: true,
3636
emit_debug_gdb_scripts: false,
3737
eh_frame_header: false,
38+
lld_flavor: LldFlavor::Ld64,
3839

3940
// The historical default for macOS targets is to run `dsymutil` which
4041
// generates a packed version of debuginfo split from the main file.

0 commit comments

Comments
 (0)