Skip to content

Commit c9cb232

Browse files
authored
Merge pull request #21797 from pshipton/xlopts
Remove z/OS compile options from AIX
2 parents 6043d4a + 3e8e49a commit c9cb232

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

runtime/cmake/platform/toolcfg/xlc.cmake

+8-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@
2222

2323
list(APPEND OMR_PLATFORM_COMPILE_OPTIONS
2424
-O3
25-
"\"-Wc,inline(auto,noreport,600,5000)\""
26-
"\"-Wc,list(),offset,gonumber\""
25+
-qstackprotect
2726
)
2827

29-
list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -qnortti)
28+
if(OMR_OS_ZOS)
29+
list(APPEND OMR_PLATFORM_COMPILE_OPTIONS
30+
"\"-Wc,inline(auto,noreport,600,5000)\""
31+
"\"-Wc,list(),offset,gonumber\""
32+
)
33+
endif()
3034

31-
list(APPEND OMR_PLATFORM_COMPILE_OPTIONS -qstackprotect)
35+
list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -qnortti)
3236

3337
if(NOT OMR_OS_ZOS)
3438
list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -qsuppress=1540-1087:1540-1088:1540-1090)

0 commit comments

Comments
 (0)