Skip to content

Commit 69ead94

Browse files
authored
[llvm] Enable building Analysis plugins on windows (#112303)
Enable building InlineAdvisorPlugin and InlineOrderPlugin on windows for shared library builds. This is part of the work to enable LLVM_BUILD_LLVM_DYLIB and LLVM plugins on window.
1 parent ef9629c commit 69ead94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/unittests/Analysis/InlineAdvisorPlugin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# libraries, but expects them to exist in the process loading the plugin. This
33
# doesn't work with DLLs on Windows (where a shared library can't have undefined
44
# references), so just skip this testcase on Windows.
5-
if (NOT WIN32 AND NOT CYGWIN)
5+
if ((NOT WIN32 OR LLVM_BUILD_LLVM_DYLIB) AND NOT CYGWIN)
66
unset(LLVM_LINK_COMPONENTS)
77
add_llvm_library(InlineAdvisorPlugin MODULE BUILDTREE_ONLY
88
InlineAdvisorPlugin.cpp

llvm/unittests/Analysis/InlineOrderPlugin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# libraries, but expects them to exist in the process loading the plugin. This
33
# doesn't work with DLLs on Windows (where a shared library can't have undefined
44
# references), so just skip this testcase on Windows.
5-
if (NOT WIN32 AND NOT CYGWIN)
5+
if ((NOT WIN32 OR LLVM_BUILD_LLVM_DYLIB) AND NOT CYGWIN)
66
unset(LLVM_LINK_COMPONENTS)
77
add_llvm_library(InlineOrderPlugin MODULE BUILDTREE_ONLY
88
InlineOrderPlugin.cpp

0 commit comments

Comments
 (0)