Skip to content

Commit 84a7917

Browse files
author
Stefan Krah
authored
bpo-41721: Add xlc options (GH-22096)
1 parent 306cfb3 commit 84a7917

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
@@ -7592,11 +7592,14 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
75927592
;;
75937593
esac
75947594

7595-
# ICC needs -fp-model strict or floats behave badly
75967595
case "$CC" in
75977596
*icc*)
7597+
# ICC needs -fp-model strict or floats behave badly
75987598
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
75997599
;;
7600+
*xlc*)
7601+
CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
7602+
;;
76007603
esac
76017604

76027605
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)