Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
950562d2
Commit
950562d2
authored
Feb 01, 2022
by
ento
Committed by
Jason Madden
Oct 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truly disable the effect of -Ofast/-ffast-math
parent
a948baef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
scripts/install.sh
scripts/install.sh
+2
-1
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+10
-4
No files found.
scripts/install.sh
View file @
950562d2
...
...
@@ -63,7 +63,8 @@ install () {
mkdir
-p
$SNAKEPIT
mkdir
-p
$BASE
/versions
update_pyenv
$VERSION
# -Ofast makes the build take too long and times out Travis.
# -Ofast makes the build take too long and times out Travis. It also affects
# process-wide floating-point flags - see: scripts/releases/make-manylinux
CFLAGS
=
"-O1 -pipe -march=native"
$BASE
/pyenv/plugins/python-build/bin/python-build
$VERSION
$DESTINATION
fi
...
...
scripts/releases/make-manylinux
View file @
950562d2
...
...
@@ -42,10 +42,16 @@ if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTI
export
CFLAGS
=
"-O1
$GEVENT_WARNFLAGS
"
SLOW_ARM
=
1
else
echo
"Compiling with -Ofast"
# 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
"
echo
"Compiling with -O3"
# Caution against using -Ofast:
# -Ofast includes -ffast-math which affects process-wide floating-point flags (e.g. can affect numpy).
# -fno-fast-math disables *some* features of -ffast-math, but as long as -Ofast is specified,
# it still affects floating-point flags:
# https://github.com/gcc-mirror/gcc/blob/releases/gcc-11.2.0/gcc/config/i386/gnu-user-common.h#L50
#
# We *could* turn on other flags that are included in -Ofast individually, but for gevent's usecase, it's not
# a priority to enable aggressive optimizations at the expense of possibly violating language standards.
export
CFLAGS
=
"-O3
$GEVENT_WARNFLAGS
"
fi
# -lrt: Needed for clock_gettime libc support on this version.
# -pthread: Needed for pthread_atfork (cffi).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment