Mach-O (Macos/ios/...) LLD flavor is always LD64.
This commit is contained in:
parent
49967357c5
commit
0ac601d03e
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
use crate::spec::{FramePointer, SplitDebuginfo, TargetOptions};
|
use crate::spec::{FramePointer, LldFlavor, SplitDebuginfo, TargetOptions};
|
||||||
|
|
||||||
pub fn opts(os: &str) -> TargetOptions {
|
pub fn opts(os: &str) -> TargetOptions {
|
||||||
// ELF TLS is only available in macOS 10.7+. If you try to compile for 10.6
|
// 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,
|
abi_return_struct_as_int: true,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
eh_frame_header: false,
|
eh_frame_header: false,
|
||||||
|
lld_flavor: LldFlavor::Ld64,
|
||||||
|
|
||||||
// The historical default for macOS targets is to run `dsymutil` which
|
// The historical default for macOS targets is to run `dsymutil` which
|
||||||
// generates a packed version of debuginfo split from the main file.
|
// generates a packed version of debuginfo split from the main file.
|
||||||
|
|
Loading…
Reference in a new issue