Commit 80d54833 authored by Tiago Peixoto's avatar Tiago Peixoto

CI: enable -flto to speedup compilation

parent 9b9d74ee
Pipeline #598 passed with stage
in 646 minutes and 49 seconds
job_gcc_amd64:
script:
- ./autogen.sh
- ./configure CXX="ccache g++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages
- ./configure CXX="ccache g++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages CXXFLAGS="-O3 -flto=12" LDFLAGS="-flto=12"
- CCACHE_BASEDIR=$PWD make $MAKEOPTS
- make install
- export PYTHONPATH=$PWD/install/site-packages
......@@ -14,7 +14,7 @@ job_gcc_amd64:
job_clang_amd64:
script:
- ./autogen.sh
- ./configure CXX="ccache clang++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages
- ./configure CXX="ccache clang++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages CXXFLAGS="-O3 -flto" LDFLAGS="-flto"
- CCACHE_BASEDIR=$PWD make $MAKEOPTS
- make install
- export PYTHONPATH=$PWD/install/site-packages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment