]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41721: Add xlc options (GH-22096)
authorStefan Krah <skrah@bytereef.org>
Fri, 4 Sep 2020 20:33:17 +0000 (22:33 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 20:33:17 +0000 (22:33 +0200)
configure
configure.ac

index 4c18ae7e364ca1a641309b574d22cb71b5d13eec..ad74754e9a7215437e4541c62b785d9c84e0c24b 100755 (executable)
--- 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
index 3b40f39124dad507c17aba12e300a457bcd3c580..f0bc8c625844b6ba8f1403cbc386fbdcbb60bae2 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