Skip to content

Commit 8ef778a

Browse files
committed
Skip strip step for libjvmtitest.so when building on AIX with OpenXL
Signed-off-by: midronij <jackie.midroni@ibm.com>
1 parent c2a5143 commit 8ef778a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

runtime/tests/jvmtitests/CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ target_include_directories(j9vm_jvmtitest_includes
2626
"${CMAKE_CURRENT_SOURCE_DIR}/include"
2727
)
2828

29-
j9vm_add_library(jvmtitest SHARED
30-
fakeref.c
31-
)
29+
# If building with OpenXL on AIX, we need to skip the strip step for libjvmtitest.so
30+
# (https://github.com/eclipse-openj9/openj9/issues/21528).
31+
if (OMR_OS_AIX AND CMAKE_C_COMPILER_IS_OPENXL)
32+
j9vm_add_library(jvmtitest SHARED SKIP_STRIP
33+
fakeref.c
34+
)
35+
else()
36+
j9vm_add_library(jvmtitest SHARED
37+
fakeref.c
38+
)
39+
endif()
40+
3241
target_link_libraries(jvmtitest
3342
PRIVATE
3443
j9vm_interface

0 commit comments

Comments
 (0)