Skip to content

Commit

Permalink
Merge pull request gevent#1820 from ikonst/patch-1
Browse files Browse the repository at this point in the history
manylinux: disable -ffast-math
  • Loading branch information
jamadden authored Oct 5, 2021
2 parents cf19786 + 5d7be4f commit 69f3613
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changes/1820.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Stop compiling manylinux wheels with ``-ffast-math.`` This was
implicit in ``-Ofast``, but could alter the global state of the
process. Analysis and fix thanks to Ilya Konstantinov.
4 changes: 3 additions & 1 deletion scripts/releases/make-manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTI
SLOW_ARM=1
else
echo "Compiling with -Ofast"
export CFLAGS="-Ofast $GEVENT_WARNFLAGS"
# Note: -Ofast includes -ffast-math which affects process-wide floating-point flags (e.g. can affect numpy).
# We opt out of -ffast-math explicitly. Other libraries can still trigger it.
export CFLAGS="-Ofast -fno-fast-math $GEVENT_WARNFLAGS"
fi
# -lrt: Needed for clock_gettime libc support on this version.
# -pthread: Needed for pthread_atfork (cffi).
Expand Down

0 comments on commit 69f3613

Please sign in to comment.