[PATCH] D25044: Warn on empty archive files.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 28 14:06:30 PDT 2016


davide added inline comments.

================
Comment at: ELF/InputFiles.cpp:437-438
@@ -432,1 +436,4 @@
+  if (IsEmpty)
+    warning(getName() + " has no symbol. If you are doing an LTO build, "
+            "make sure you are using llvm-ar instead of ar.");
 }
----------------
This is not entirely correct. In fact, you can use ar with a plugin and it will work just fine. Can you rephrase that in a different way? (e.g. you need to have a version of the archives which can create a bitcode armap?)


https://reviews.llvm.org/D25044





More information about the llvm-commits mailing list