Skip to content

Commit

Permalink
Merge pull request #19826 from Deigue/test-nojvmtiexport
Browse files Browse the repository at this point in the history
Add Open XL equivalent for EXPORTALL in jvmtitests
  • Loading branch information
keithc-ca authored Jul 18, 2024
2 parents ab1ec9a + 0ba6738 commit 79f9d1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions runtime/tests/jvmtitests/agent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ target_link_libraries(jvmti_test_agent
jvmti_test_src
)


if(OMR_OS_ZOS)
target_compile_options(jvmti_test_agent PRIVATE -Wc,DLL,EXPORTALL)
if(OMR_TOOLCONFIG STREQUAL "openxl")
target_compile_options(jvmti_test_agent PRIVATE -fvisibility=default)
else()
target_compile_options(jvmti_test_agent PRIVATE -Wc,DLL,EXPORTALL)
endif()
endif()
6 changes: 5 additions & 1 deletion runtime/tests/jvmtitests/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,9 @@ target_link_libraries(jvmti_test_src
)

if(OMR_OS_ZOS)
target_compile_options(jvmti_test_src PRIVATE -Wc,DLL,EXPORTALL)
if(OMR_TOOLCONFIG STREQUAL "openxl")
target_compile_options(jvmti_test_src PRIVATE -fvisibility=default)
else()
target_compile_options(jvmti_test_src PRIVATE -Wc,DLL,EXPORTALL)
endif()
endif()

0 comments on commit 79f9d1c

Please sign in to comment.