summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-07-17 00:44:35 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-07-17 00:44:35 +0200
commit3706ce50e4006e7ad4d3065d6f18228ca59a20d7 (patch)
tree85c6c6b861e65e7fe12cc02dfbf0cc753cda2f38
parent18d9ffebc0ed14dbdef7e2bb073a7dcf2b9d62eb (diff)
downloadpython-lxml-3706ce50e4006e7ad4d3065d6f18228ca59a20d7.tar.gz
Use -flto for wheel builds.
-rw-r--r--tools/ci-run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ci-run.sh b/tools/ci-run.sh
index e66e2e05..38f95547 100644
--- a/tools/ci-run.sh
+++ b/tools/ci-run.sh
@@ -61,6 +61,8 @@ CFLAGS="-Og -g -fPIC" PYTHONUNBUFFERED=x make test || exit 1
python setup.py install || exit 1
python -c "from lxml import etree" || exit 1
-CFLAGS="-O3 -g1 -march=generic -fPIC" make clean bdist_wheel || exit 1
+CFLAGS="-O3 -g1 -march=generic -fPIC -flto" \
+ LDFLAGS="-flto" \
+ make clean bdist_wheel || exit 1
ccache -s || true