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

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 13:16:28 PDT 2016


MatzeB 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?
>  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. 
>  I haven't found a solution to go around this, and it would be nice to factor out building the halide runtime between all bitcode tests coming from the Halide suite.


Not sure if that is what you are discussing here, but maybe the macOS build currently fails because function names are mangled with a "_" prefix, will this work correctly when you link with generic .bc files (constructed on linux I presume)?


https://reviews.llvm.org/D23127





More information about the llvm-commits mailing list