summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-07-17 00:28:21 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-07-17 00:28:21 +0200
commit18d9ffebc0ed14dbdef7e2bb073a7dcf2b9d62eb (patch)
treeb7400e1597b1f702e4dca0510c995039036046e5
parentf26d6be6385034e9ccfcb8ced5764dec8369326a (diff)
downloadpython-lxml-18d9ffebc0ed14dbdef7e2bb073a7dcf2b9d62eb.tar.gz
Improve CFLAGS in CI builds to get better C compiler warnings and better wheels.
-rw-r--r--tools/ci-run.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ci-run.sh b/tools/ci-run.sh
index 9edc23a6..e66e2e05 100644
--- a/tools/ci-run.sh
+++ b/tools/ci-run.sh
@@ -48,7 +48,7 @@ if [ "$COVERAGE" == "true" ]; then
fi
# Build
-CFLAGS="-Og -g -fPIC" python -u setup.py build_ext --inplace \
+CFLAGS="-Og -g -fPIC -Wall -Wextra" python -u setup.py build_ext --inplace \
$(if [ -n "${PYTHON_VERSION##2.*}" ]; then echo -n " -j7 "; fi ) \
$(if [ "$COVERAGE" == "true" ]; then echo -n " --with-coverage"; fi ) \
|| exit 1
@@ -58,9 +58,9 @@ ccache -s || true
# Run tests
CFLAGS="-Og -g -fPIC" PYTHONUNBUFFERED=x make test || exit 1
-python setup.py bdist_wheel || 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
+
ccache -s || true