================
@@ -341,6 +342,38 @@ static Expected<LinkResult>
linkInputs(ArrayRef<std::string> InputFiles,
// Link in library files.
for (auto &File : *BCLibFiles) {
+ // Static archives are unpacked and each bitcode member is linked
+ // individually with LinkOnlyNeeded.
+ StringRef Ext = sys::path::extension(File);
+ if (Ext == ".a" || Ext == ".lib") {
----------------
sarnex wrote:
instead of checking the ext should we use `llvm::identify_magic`?
https://github.com/llvm/llvm-project/pull/201253
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits