]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41721: Add xlc options (GH-22097)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Sep 2020 21:02:57 +0000 (14:02 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 21:02:57 +0000 (23:02 +0200)
(cherry picked from commit 84a7917b4c9afec07575065cffa143b91fe98c14)

Authored-by: Stefan Krah <skrah@bytereef.org>
configure
configure.ac

index 4d9c54f2d687ba60d12be3f13dc0a2420e56b598..9e6fd4658333b4a04409e9c63e527db028f1992a 100755 (executable)
--- 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
index 1bcd41e484615472b2e7545f87b2b5922d175b4a..d60f05251ab727c38b7200a20277fc5eecaabaf9 100644 (file)
@@ -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