[llvm] Disable linking llvm-exegesis to dylib
authorMichał Górny <mgorny@gentoo.org>
Tue, 16 Jun 2020 10:31:36 +0000 (12:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 17 Jun 2020 17:00:26 +0000 (19:00 +0200)
Force linking llvm-exegesis to static LLVM libraries instead of dylib
to prevent duplicate symbols due to linking both.  Ideally, we'd want
to link to the dylib only here but the target sub-libraries use hidden
symbols from LLVM target libraries and therefore linking the dylib
fails.

Differential Revision: https://reviews.llvm.org/D81922

llvm/tools/llvm-exegesis/CMakeLists.txt

index a59e1b7..0575f2a 100644 (file)
@@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS
   )
 
 add_llvm_tool(llvm-exegesis
+  DISABLE_LLVM_LINK_LLVM_DYLIB
   llvm-exegesis.cpp
   )