提交 0ac601d0 编写于 作者: H Hans Kratz

Mach-O (Macos/ios/...) LLD flavor is always LD64.

上级 49967357
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 { ...@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册