File tree 4 files changed +6
-1
lines changed
librustc_codegen_llvm/llvm
4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ pub enum ArchiveKind {
459
459
Other ,
460
460
K_GNU ,
461
461
K_BSD ,
462
+ K_DARWIN ,
462
463
K_COFF ,
463
464
}
464
465
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ impl FromStr for ArchiveKind {
69
69
match s {
70
70
"gnu" => Ok ( ArchiveKind :: K_GNU ) ,
71
71
"bsd" => Ok ( ArchiveKind :: K_BSD ) ,
72
+ "darwin" => Ok ( ArchiveKind :: K_DARWIN ) ,
72
73
"coff" => Ok ( ArchiveKind :: K_COFF ) ,
73
74
_ => Err ( ( ) ) ,
74
75
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub fn opts() -> TargetOptions {
26
26
has_rpath : true ,
27
27
dll_prefix : "lib" . to_string ( ) ,
28
28
dll_suffix : ".dylib" . to_string ( ) ,
29
- archive_format : "bsd " . to_string ( ) ,
29
+ archive_format : "darwin " . to_string ( ) ,
30
30
pre_link_args : LinkArgs :: new ( ) ,
31
31
has_elf_tls : version >= ( 10 , 7 ) ,
32
32
abi_return_struct_as_int : true ,
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ enum class LLVMRustArchiveKind {
38
38
Other,
39
39
GNU,
40
40
BSD,
41
+ DARWIN,
41
42
COFF,
42
43
};
43
44
@@ -47,6 +48,8 @@ static Archive::Kind fromRust(LLVMRustArchiveKind Kind) {
47
48
return Archive::K_GNU;
48
49
case LLVMRustArchiveKind::BSD:
49
50
return Archive::K_BSD;
51
+ case LLVMRustArchiveKind::DARWIN:
52
+ return Archive::K_DARWIN;
50
53
case LLVMRustArchiveKind::COFF:
51
54
return Archive::K_COFF;
52
55
default :
You can’t perform that action at this time.
0 commit comments