Skip to content

Commit 35a0fd5

Browse files
committed
Fix some another unit test for LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES=Off.
Building with -DLLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES=Off should not prevent the AnalysisTests unit test from working. This fix uses the approach implemented in #101741. rdar://135849875
1 parent cbcf531 commit 35a0fd5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/unittests/Analysis/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ endif()
6767

6868
add_llvm_unittest_with_input_files(AnalysisTests
6969
${ANALYSIS_TEST_SOURCES}
70+
71+
EXPORT_SYMBOLS
7072
)
7173

7274
add_dependencies(AnalysisTests intrinsics_gen)
@@ -79,10 +81,5 @@ if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
7981
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-brtl")
8082
endif()
8183

82-
# Export symbols from the plugins shared objects.
83-
if(NOT WIN32)
84-
export_executable_symbols_for_plugins(AnalysisTests)
85-
endif()
86-
8784
add_subdirectory(InlineAdvisorPlugin)
8885
add_subdirectory(InlineOrderPlugin)

0 commit comments

Comments
 (0)