summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-09-04 14:02:57 -0700
committerGitHub <noreply@github.com>2020-09-04 23:02:57 +0200
commitfb050d0d60f38dc9b6c30df1864020a92981be5b (patch)
tree86f092616a6db5f7f17376806c18d87c8d138ef8
parent8f13ff959ae43fb6b8217845b2945779fe693b84 (diff)
downloadcpython-git-fb050d0d60f38dc9b6c30df1864020a92981be5b.tar.gz
bpo-41721: Add xlc options (GH-22097)
(cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14) Authored-by: Stefan Krah <skrah@bytereef.org>
-rwxr-xr-xconfigure5
-rw-r--r--configure.ac5
2 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 4d9c54f2d6..9e6fd46583 100755
--- a/configure
+++ b/configure
@@ -7588,11 +7588,14 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
;;
esac
-# ICC needs -fp-model strict or floats behave badly
case "$CC" in
*icc*)
+ # ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;;
+*xlc*)
+ CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
+ ;;
esac
if test "$assertions" = 'true'; then
diff --git a/configure.ac b/configure.ac
index 1bcd41e484..d60f05251a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1993,11 +1993,14 @@ yes)
;;
esac
-# ICC needs -fp-model strict or floats behave badly
case "$CC" in
*icc*)
+ # ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;;
+*xlc*)
+ CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
+ ;;
esac
if test "$assertions" = 'true'; then