File tree 4 files changed +6
-0
lines changed
rustc_codegen_llvm/src/llvm
rustc_codegen_ssa/src/back
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,7 @@ pub enum ArchiveKind {
552
552
K_BSD ,
553
553
K_DARWIN ,
554
554
K_COFF ,
555
+ K_AIXBIG ,
555
556
}
556
557
557
558
// LLVMRustThinLTOData
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ impl FromStr for ArchiveKind {
137
137
"bsd" => Ok ( ArchiveKind :: K_BSD ) ,
138
138
"darwin" => Ok ( ArchiveKind :: K_DARWIN ) ,
139
139
"coff" => Ok ( ArchiveKind :: K_COFF ) ,
140
+ "aix_big" => Ok ( ArchiveKind :: K_AIXBIG ) ,
140
141
_ => Err ( ( ) ) ,
141
142
}
142
143
}
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ impl<'a> ArArchiveBuilder<'a> {
233
233
"bsd" => ArchiveKind :: Bsd ,
234
234
"darwin" => ArchiveKind :: Darwin ,
235
235
"coff" => ArchiveKind :: Coff ,
236
+ "aix_big" => ArchiveKind :: AixBig ,
236
237
kind => {
237
238
self . sess . emit_fatal ( UnknownArchiveKind { kind } ) ;
238
239
}
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ enum class LLVMRustArchiveKind {
39
39
BSD,
40
40
DARWIN,
41
41
COFF,
42
+ AIX_BIG,
42
43
};
43
44
44
45
static Archive::Kind fromRust (LLVMRustArchiveKind Kind) {
@@ -51,6 +52,8 @@ static Archive::Kind fromRust(LLVMRustArchiveKind Kind) {
51
52
return Archive::K_DARWIN;
52
53
case LLVMRustArchiveKind::COFF:
53
54
return Archive::K_COFF;
55
+ case LLVMRustArchiveKind::AIX_BIG:
56
+ return Archive::K_AIXBIG;
54
57
default :
55
58
report_fatal_error (" Bad ArchiveKind." );
56
59
}
You can’t perform that action at this time.
0 commit comments