meson: Use clang for faster build

This commit is contained in:
Lzu Tao 2018-12-03 00:57:10 +07:00
parent 65507666bb
commit 25311d24c6

View File

@ -72,18 +72,17 @@ script:
- if [ "${BUILD_SYSTEM}" = meson ]; then - if [ "${BUILD_SYSTEM}" = meson ]; then
set -x; set -x;
sudo apt-get install -qq liblz4-dev valgrind tree sudo apt-get install -qq liblz4-dev valgrind tree
&& curl -o get-pip.py 'https://bootstrap.pypa.io/get-pip.py' && curl -o ~/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
&& python3 get-pip.py --user && python3 ~/get-pip.py --user
&& rm get-pip.py
&& pip3 install --user meson ninja && pip3 install --user meson ninja
&& unset CC CXX && export CC=clang CXX=clang++
&& meson --buildtype=debug && meson --buildtype=debug
-Db_lundef=false
-Dauto_features=enabled -Dauto_features=enabled
-Dbuild_{programs,tests,contrib}=true -Dbuild_{programs,tests,contrib}=true
-Ddefault_library=both build/meson -Ddefault_library=both
builddir build/meson builddir
&& cd "$_" && cd "$_"
&& ninja
&& DESTDIR=./staging ninja install && DESTDIR=./staging ninja install
&& tree ./staging; && tree ./staging;
travis_terminate "$?"; travis_terminate "$?";