bpo-41721: Add xlc options (GH-22096)

This commit is contained in:
Stefan Krah 2020-09-04 22:33:17 +02:00 committed by GitHub
parent 306cfb3a37
commit 84a7917b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

5
configure vendored
View File

@ -7592,11 +7592,14 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
;; ;;
esac esac
# ICC needs -fp-model strict or floats behave badly
case "$CC" in case "$CC" in
*icc*) *icc*)
# ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;; ;;
*xlc*)
CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
;;
esac esac
if test "$assertions" = 'true'; then if test "$assertions" = 'true'; then

View File

@ -1993,11 +1993,14 @@ yes)
;; ;;
esac esac
# ICC needs -fp-model strict or floats behave badly
case "$CC" in case "$CC" in
*icc*) *icc*)
# ICC needs -fp-model strict or floats behave badly
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;; ;;
*xlc*)
CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
;;
esac esac
if test "$assertions" = 'true'; then if test "$assertions" = 'true'; then