]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: Build VTest with clang
authorTim Duesterhus <tim@bastelstu.be>
Mon, 10 May 2021 20:54:31 +0000 (22:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 May 2021 21:00:59 +0000 (23:00 +0200)
Current VTest master fails to build using gcc, see vtest/VTest#27.

This patch is to be reverted once VTest is fixed.

.github/workflows/vtest.yml
.travis.yml

index cb52f27d6fb037f1d8728225f419f54b432a1cc7..1d62f98f3a8cd0cc03403a4135a9bef1f3583b78 100644 (file)
@@ -63,7 +63,7 @@ jobs:
         curl -fsSL https://github.com/vtest/VTest/archive/master.tar.gz -o VTest.tar.gz
         mkdir VTest
         tar xvf VTest.tar.gz -C VTest --strip-components=1
-        make -C VTest -j$(nproc) FLAGS="-O2 -s -Wall"
+        make -C VTest -j$(nproc) FLAGS="-O2 -s -Wall" CC=clang
         sudo install -m755 VTest/vtest /usr/local/bin/vtest
     - name: Install SSL ${{ matrix.ssl }}
       if: ${{ matrix.ssl && matrix.ssl != 'stock' }}
index 1aa415aa8d56cf29b59f188f617e927c41fa7907..37b667bc1f38d803bd4bdef37c4c29401b53260f 100644 (file)
@@ -40,7 +40,7 @@ matrix:
 install:
   - git clone https://github.com/VTest/VTest.git ../vtest
   # Special flags due to: https://github.com/vtest/VTest/issues/12
-  - make -C ../vtest FLAGS="-O2 -s -Wall"
+  - make -C ../vtest FLAGS="-O2 -s -Wall" CC=clang
 
 script:
   - make -j$(nproc) ERR=1 TARGET=linux-glibc CC=$CC DEBUG=-DDEBUG_STRICT=1 $FLAGS