Skip to content

Commit

Permalink
bpo-41721: Add xlc options (pythonGH-22096)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrah authored Sep 4, 2020
1 parent 306cfb3 commit 84a7917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84a7917

Please sign in to comment.