[Python-checkins] bpo-41721: Add xlc options (GH-22096)
Stefan Krah
webhook-mailer at python.org
Fri Sep 4 16:33:25 EDT 2020
https://github.com/python/cpython/commit/84a7917b4c9afec07575065cffa143b91fe98c14
commit: 84a7917b4c9afec07575065cffa143b91fe98c14
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2020-09-04T22:33:17+02:00
summary:
bpo-41721: Add xlc options (GH-22096)
files:
M configure
M configure.ac
diff --git a/configure b/configure
index 4c18ae7e364ca..ad74754e9a721 100755
--- a/configure
+++ b/configure
@@ -7592,11 +7592,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 3b40f39124dad..f0bc8c625844b 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
More information about the Python-checkins
mailing list