[llvm] [llvm] update a few llvm unit tests to link statically (PR #145448)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 12:26:53 PDT 2025


andrurogerz wrote:

@nikic #145767 is the alternate approach of exporting private symbols to keep these unit tests building against the shared library. The individual commits in that PR  illustrate what symbols are required for each of the tests.

NOTE: I believe it is correct for `TableGenTests` to link against the static libs as shown in this current PR because it links against `LLVMTableGenCommon` which also uses `DISABLE_LLVM_LINK_LLVM_DYLIB`. I changed this unit test to specify `DISABLE_LLVM_LINK_LLVM_DYLIB` to avoid duplicate symbols.

https://github.com/llvm/llvm-project/pull/145448


More information about the llvm-commits mailing list