mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fix calling llvm::writeArchive for LLVM > 17.
This commit is contained in:
committed by
Christoffer Lerno
parent
69553fd80e
commit
cc2c737357
@@ -164,7 +164,11 @@ extern "C" {
|
||||
}
|
||||
new_members.push_back(std::move(*member));
|
||||
}
|
||||
#if LLVM_VERSION_MAJOR > 17
|
||||
return !llvm::writeArchive(std::string(out_name), std::move(new_members), llvm::SymtabWritingMode::NormalSymtab, kind, true, false, nullptr);
|
||||
#else
|
||||
return !llvm::writeArchive(std::string(out_name), std::move(new_members), true, kind, true, false, nullptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
int llvm_version_major = LLVM_VERSION_MAJOR;
|
||||
|
||||
Reference in New Issue
Block a user