From: Kevin Ottens Date: Thu, 6 Aug 2020 11:25:23 +0000 (+0200) Subject: Switch to Ninja for the clang build X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~238^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=571e15c6eb73400f2172ee903e204fc2b1234e93;p=nextcloud-desktop.git Switch to Ninja for the clang build Clang is generally slower to compile than GCC so use a faster Make for that build variant. This also allows us to verify our CMake files don't do anything Make specific. Signed-off-by: Kevin Ottens --- diff --git a/.drone.yml b/.drone.yml index b8a3d0f18..adab9f483 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,7 +52,7 @@ steps: path: /drone/build commands: - cd /drone/build - - cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src + - cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src - name: compile image: nextcloudci/client-5.12:client-5.12-10 volumes: @@ -60,7 +60,7 @@ steps: path: /drone/build commands: - cd /drone/build - - make -j$(nproc) + - ninja - name: test image: nextcloudci/client-5.12:client-5.12-10 volumes: