[llvm] r329522 - [LLVMTestingSupport] Add explicit linkage to LLVMSupport
Michal Gorny via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 7 23:49:17 PDT 2018
Author: mgorny
Date: Sat Apr 7 23:49:17 2018
New Revision: 329522
URL: http://llvm.org/viewvc/llvm-project?rev=329522&view=rev
Log:
[LLVMTestingSupport] Add explicit linkage to LLVMSupport
Explicitly link LLVMTestingSupport library against LLVMSupport. This
is necessary to fix linking errors when LLVMTestingSupport is built
as a shared library (with BUILD_SHARED_LIBS=ON) and -Wl,-z,defs is used.
Differential Revision: https://reviews.llvm.org/D45408
Modified:
llvm/trunk/lib/Testing/Support/CMakeLists.txt
Modified: llvm/trunk/lib/Testing/Support/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Testing/Support/CMakeLists.txt?rev=329522&r1=329521&r2=329522&view=diff
==============================================================================
--- llvm/trunk/lib/Testing/Support/CMakeLists.txt (original)
+++ llvm/trunk/lib/Testing/Support/CMakeLists.txt Sat Apr 7 23:49:17 2018
@@ -8,8 +8,11 @@ add_llvm_library(LLVMTestingSupport
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
+
+ LINK_COMPONENTS
+ Support
)
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include)
-target_link_libraries(LLVMTestingSupport PRIVATE gtest)
\ No newline at end of file
+target_link_libraries(LLVMTestingSupport PRIVATE gtest)
More information about the llvm-commits
mailing list