[llvm] 1ad5e3c - [llvm] Disable linking llvm-exegesis to dylib

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 17 10:01:21 PDT 2020


Author: Michał Górny
Date: 2020-06-17T19:00:26+02:00
New Revision: 1ad5e3cd6b8147d6919a2dbee9b905f86ba50c97

URL: https://github.com/llvm/llvm-project/commit/1ad5e3cd6b8147d6919a2dbee9b905f86ba50c97
DIFF: https://github.com/llvm/llvm-project/commit/1ad5e3cd6b8147d6919a2dbee9b905f86ba50c97.diff

LOG: [llvm] Disable linking llvm-exegesis to dylib

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

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/CMakeLists.txt b/llvm/tools/llvm-exegesis/CMakeLists.txt
index a59e1b74024e..0575f2a06bb7 100644
--- a/llvm/tools/llvm-exegesis/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/CMakeLists.txt
@@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS
   )
 
 add_llvm_tool(llvm-exegesis
+  DISABLE_LLVM_LINK_LLVM_DYLIB
   llvm-exegesis.cpp
   )
 


        


More information about the llvm-commits mailing list