Skip to content

Commit 3e8e49a

Browse files
committed
Remove z/OS compile options from AIX
Avoid warnings on AIX /opt/IBM/xlC/13.1.3/bin/.orig/xlC_r: 1501-210 (W) command option Wc,inline(auto contains an incorrect subargument /opt/IBM/xlC/13.1.3/bin/.orig/xlC_r: 1501-210 (W) command option Wc,list() contains an incorrect subargument /opt/IBM/xlC/13.1.3/bin/.orig/xlC_r: 1501-210 (W) command option Wc,offset contains an incorrect subargument /opt/IBM/xlC/13.1.3/bin/.orig/xlC_r: 1501-210 (W) command option Wc,gonumber contains an incorrect subargument Related to #19657 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
1 parent 6043d4a commit 3e8e49a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

runtime/cmake/platform/toolcfg/xlc.cmake

Lines changed: 8 additions & 4 deletions
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)