This does *not* link with libLLVM, but with static archives instead. Not
super-great, but at least the build works, which is probably better than
failing.
Related to #57551
Paths
| Differential D134434
[BOLT] Support building bolt when LLVM_LINK_LLVM_DYLIB is ON ClosedPublic Authored by serge-sans-paille on Sep 22 2022, 6:05 AM.
Details Summary This does *not* link with libLLVM, but with static archives instead. Not Related to #57551
Diff Detail
Event TimelineComment Actions Nice. Works for me. Do you think we really need this statement DISABLE_LLVM_LINK_LLVM_DYLIB in all CMakeLists, or just the ones that touch LLVM's Target libraries? Comment Actions
Sorry, it looks like we need to set it everywhere because otherwise some global symbols are present in both libLLVM and llvm-bolt and that causes a runtime crash:
With that, LGTM. @rafaelauler @maksfb - please take a look if the change makes sense to you. This revision is now accepted and ready to land.Sep 22 2022, 11:55 AM Closed by commit rG61cff9079c08: [BOLT] Support building bolt when LLVM_LINK_LLVM_DYLIB is ON (authored by serge-sans-paille). · Explain WhySep 22 2022, 10:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 462393 bolt/lib/Core/CMakeLists.txt
bolt/lib/Passes/CMakeLists.txt
bolt/lib/Profile/CMakeLists.txt
bolt/lib/Rewrite/CMakeLists.txt
bolt/lib/RuntimeLibs/CMakeLists.txt
bolt/lib/Target/AArch64/CMakeLists.txt
bolt/lib/Target/X86/CMakeLists.txt
bolt/lib/Utils/CMakeLists.txt
bolt/tools/bat-dump/CMakeLists.txt
bolt/tools/driver/CMakeLists.txt
bolt/tools/heatmap/CMakeLists.txt
bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
bolt/tools/merge-fdata/CMakeLists.txt
bolt/unittests/Core/CMakeLists.txt
|