Skip to content

Commit fb050d0

Browse files
bpo-41721: Add xlc options (GH-22097)
(cherry picked from commit 84a7917) Authored-by: Stefan Krah <[email protected]>
1 parent 8f13ff9 commit fb050d0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

configure

+4-1
Original file line numberDiff line numberDiff line change
@@ -7588,11 +7588,14 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
75887588
;;
75897589
esac
75907590

7591-
# ICC needs -fp-model strict or floats behave badly
75927591
case "$CC" in
75937592
*icc*)
7593+
# ICC needs -fp-model strict or floats behave badly
75947594
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
75957595
;;
7596+
*xlc*)
7597+
CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
7598+
;;
75967599
esac
75977600

75987601
if test "$assertions" = 'true'; then

configure.ac

+4-1
Original file line numberDiff line numberDiff line change
@@ -1993,11 +1993,14 @@ yes)
19931993
;;
19941994
esac
19951995

1996-
# ICC needs -fp-model strict or floats behave badly
19971996
case "$CC" in
19981997
*icc*)
1998+
# ICC needs -fp-model strict or floats behave badly
19991999
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
20002000
;;
2001+
*xlc*)
2002+
CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
2003+
;;
20012004
esac
20022005

20032006
if test "$assertions" = 'true'; then

0 commit comments

Comments
 (0)