]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: vtest: Fix the build script to properly work on MaOS
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 May 2025 12:48:48 +0000 (14:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 May 2025 12:48:53 +0000 (14:48 +0200)
"config.h" header file is new in VTest2 and includes must be adapted to be
able to build VTest on MacOS. Let's add "-I." to make it work.

scripts/build-vtest.sh

index 3da4276223830d05cfa9488a08765e80c688bb2b..f74da3145d93397a06b1a6d97acbfc9b04287956 100755 (executable)
@@ -24,7 +24,7 @@ set -e
 # temporarily detect Apple Silicon (it's using /opt/homebrew instead of /usr/local)
 #
 if test -f /opt/homebrew/include/pcre2.h; then
-   make -j${CPUS} FLAGS="-O2 -s -Wall" INCS="-Isrc -Ilib -I/usr/local/include -I/opt/homebrew/include -pthread"
+   make -j${CPUS} FLAGS="-O2 -s -Wall" INCS="-I. -Isrc -Ilib -I/usr/local/include -I/opt/homebrew/include -pthread"
 else
    make -j${CPUS} FLAGS="-O2 -s -Wall"
 fi