[PATCH] D105523: unittests: Fix build with LLVM_LINK_LLVM_DYLIB=ON
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 6 19:39:35 PDT 2021
tstellar created this revision.
tstellar added reviewers: hliao, aeubanks.
Herald added a subscriber: mgorny.
tstellar requested review of this revision.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105523
Files:
llvm/unittests/Passes/CMakeLists.txt
Index: llvm/unittests/Passes/CMakeLists.txt
===================================================================
--- llvm/unittests/Passes/CMakeLists.txt
+++ llvm/unittests/Passes/CMakeLists.txt
@@ -12,12 +12,12 @@
# work with DLLs on Windows (where a shared library can't have undefined
# references), so just skip this testcase on Windows.
if (NOT WIN32)
- set(LLVM_LINK_COMPONENTS Support Passes Core)
+ set(LLVM_LINK_COMPONENTS Support Passes Core LLVMAsmParser)
add_llvm_unittest(PluginsTests
PluginsTest.cpp
)
export_executable_symbols_for_plugins(PluginsTests)
- target_link_libraries(PluginsTests PRIVATE LLVMAsmParser LLVMTestingSupport)
+ target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
set(LLVM_LINK_COMPONENTS)
foreach(PLUGIN TestPlugin DoublerPlugin)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105523.356851.patch
Type: text/x-patch
Size: 809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210707/2e2a5b6f/attachment.bin>
More information about the llvm-commits
mailing list