Link ScopPassManager to LLVM dylib target if LLVM_LINK_LLVM_DYLIB
is enabled. This fixes build failures on systems where static LLVM
libraries are not installed.
Details
Diff Detail
Event Timeline
polly/unittests/ScopPassManager/CMakeLists.txt | ||
---|---|---|
4–9 | Should this depend on LLVM_LINK_LLVM_DYLIB instead? |
Updated to use LLVM_LINK_LLVM_DYLIB.
polly/unittests/ScopPassManager/CMakeLists.txt | ||
---|---|---|
4–9 | Sure. |
Which configurations have you tested this with?
LLVM_LINK_LLVM_DYLIB is also used in AddLLVM.cmake, but I am not sure how it is propagated in a pre-installed LLVM (i.e. LLVMConfig.cmake).
Only Gentoo install. Do you happen to know whom to CC to get better test coverage?
LLVM_LINK_LLVM_DYLIB is also used in AddLLVM.cmake, but I am not sure how it is propagated in a pre-installed LLVM (i.e. LLVMConfig.cmake).
I've grepped it there and it seems to work fine.
tHat would probably be me. I am running three Polly buildbots, but we don't have enough resources to test all configurations. Previously, I was testing them manually. See https://groups.google.com/d/msg/polly-dev/vxumPMhrSEs/uE7OfPojCwAJ
LLVM_LINK_LLVM_DYLIB is also used in AddLLVM.cmake, but I am not sure how it is propagated in a pre-installed LLVM (i.e. LLVMConfig.cmake).
I've grepped it there and it seems to work fine.
Asking because there's no LLVM_LINK_LLVM_DYLIB=OFF in my install config without dylib.
polly/unittests/ScopPassManager/CMakeLists.txt | ||
---|---|---|
4–6 | I think adding libLLVM as dependency is not necessary because if using a dylib, it will be a dependency of Polly anyway. |
polly/unittests/ScopPassManager/CMakeLists.txt | ||
---|---|---|
4–6 | You are indeed correct. |
I think adding libLLVM as dependency is not necessary because if using a dylib, it will be a dependency of Polly anyway.