enable LTO for wheel builds

(cherry picked from commit 7b3633601f56b8eb1ef332afc10b2f70a3287de7)
This commit is contained in:
PyYoshi 2018-01-10 01:11:21 +09:00
parent 0f6b732b14
commit 1a4f6b506e
2 changed files with 19 additions and 2 deletions

View file

@ -1,6 +1,13 @@
CHANGES
=======
2.1.x
-----
- enable `LTO`_ for wheel builds
.. _LTO: https://gcc.gnu.org/wiki/LinkTimeOptimization
2.1.1 (2017-07-01)
------------------

View file

@ -19,7 +19,17 @@ install: clean
build-manylinux1-wheel:
docker pull quay.io/pypa/manylinux1_i686
docker pull quay.io/pypa/manylinux1_x86_64
docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_i686 bash dockerfiles/buildwheel.sh
docker run --rm -ti -v `pwd`:/project -w /project quay.io/pypa/manylinux1_x86_64 bash dockerfiles/buildwheel.sh
docker run --rm -ti -v `pwd`:/project \
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
-e LDFLAGS="$(LDFLAGS) -flto" \
-w /project \
quay.io/pypa/manylinux1_i686 \
bash dockerfiles/buildwheel.sh
docker run --rm -ti -v `pwd`:/project \
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
-e LDFLAGS="$(LDFLAGS) -flto" \
-w /project \
quay.io/pypa/manylinux1_x86_64 \
bash dockerfiles/buildwheel.sh
build: clean pip test sdist build-manylinux1-wheel