enable LTO for wheel builds
(cherry picked from commit 7b3633601f56b8eb1ef332afc10b2f70a3287de7)
This commit is contained in:
parent
0f6b732b14
commit
1a4f6b506e
2 changed files with 19 additions and 2 deletions
|
@ -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)
|
||||
------------------
|
||||
|
||||
|
|
14
Makefile
14
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue