File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,13 @@ if(OMR_TOOLCONFIG STREQUAL "gnu")
55
55
# defining _FORTIFY_SOURCE is invalid when optimizations are disabled
56
56
omr_remove_flags (CMAKE_C_FLAGS ${OMR_STRNCPY_FORTIFY_OPTIONS} )
57
57
omr_remove_flags (CMAKE_CXX_FLAGS ${OMR_STRNCPY_FORTIFY_OPTIONS} )
58
- if (NOT CMAKE_CXX_COMPILER_ID MATCHES Clang )
59
- target_compile_options (j9ddr_misc PRIVATE -femit-class-debug-always )
60
- endif ()
61
58
endif ()
62
59
60
+ if (CMAKE_C_COMPILER_ID MATCHES "Clang" )
61
+ target_compile_options (j9ddr_misc PRIVATE -fno-eliminate-unused-debug-types )
62
+ elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" )
63
+ target_compile_options (j9ddr_misc PRIVATE -femit-class-debug-always )
64
+ endif ()
63
65
64
66
if (OMR_OS_AIX )
65
67
target_link_libraries (j9ddr_misc
You can’t perform that action at this time.
0 commit comments