]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson: Use clang for faster build
authorLzu Tao <taolzu@gmail.com>
Sun, 2 Dec 2018 17:57:10 +0000 (00:57 +0700)
committerLzu Tao <taolzu@gmail.com>
Sun, 2 Dec 2018 17:57:10 +0000 (00:57 +0700)
.travis.yml

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