about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorQiu Chaofan <qcf@ecnelises.com>2023-01-11 11:27:29 +0800
committerQiu Chaofan <qiucofan@cn.ibm.com>2023-04-19 11:10:47 +0800
commit7037ff99af21cd34eb4bcb95fe91d210bc8e4f3f (patch)
treedfd24acbe6172391b7576e52f399fee3d495367f /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentda481403e7e3c91878ef8fe3099c04dbb862a145 (diff)
downloadrust-7037ff99af21cd34eb4bcb95fe91d210bc8e4f3f.tar.gz
rust-7037ff99af21cd34eb4bcb95fe91d210bc8e4f3f.zip
Recognize AIX style archive kind
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
index 448a1f62f69..35d6b9ed7a4 100644
--- a/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
@@ -39,6 +39,7 @@ enum class LLVMRustArchiveKind {
   BSD,
   DARWIN,
   COFF,
+  AIX_BIG,
 };
 
 static Archive::Kind fromRust(LLVMRustArchiveKind Kind) {
@@ -51,6 +52,8 @@ static Archive::Kind fromRust(LLVMRustArchiveKind Kind) {
     return Archive::K_DARWIN;
   case LLVMRustArchiveKind::COFF:
     return Archive::K_COFF;
+  case LLVMRustArchiveKind::AIX_BIG:
+    return Archive::K_AIXBIG;
   default:
     report_fatal_error("Bad ArchiveKind.");
   }