[PATCH] D23127: [test-suite] Bitcode tests: Update cmake to build driver and halide runtime only once.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 13:26:23 PDT 2016


mehdi_amini added a comment.

In https://reviews.llvm.org/D23127#505111, @asbirlea wrote:

> @mehdi_amini: Do you have any insight into why having a single .bc into a static library is not allowed on OSX and how/if this can be bypassed?


It is allowed:

echo "" | clang -x c - -c -emit-llvm -o test.o
ar -rv test.a test.o
ar: creating archive test.a
a - test.o

(Now of course, if you're using ToT LLVM/Clang, you need to set DYLD_LIBRARY_PATH to points to your libLTO.dylib, there is no way the system ar can have support for "future" bitcode )

> The link error I see is "ar: no archive members specified", which I found comes up if you try something like adding a single header into a static library and force it to use CXX linker language, just like I did for the .bc.


Can you post the command you're using?


https://reviews.llvm.org/D23127





More information about the llvm-commits mailing list