mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 01:14:38 +00:00
CI: scripts: build vtest using multiple CPUs
Now that vtest supports make -j, let's use it to save a bit of time (the build time is ~6s per test by default).
This commit is contained in:
parent
01843c47a1
commit
7e943cdf27
@ -15,11 +15,16 @@ tar xvf VTest.tar.gz -C ../vtest --strip-components=1
|
|||||||
|
|
||||||
cd ../vtest
|
cd ../vtest
|
||||||
|
|
||||||
|
set +e
|
||||||
|
CPUS=${CPUS:-$(nproc 2>/dev/null)}
|
||||||
|
CPUS=${CPUS:-1}
|
||||||
|
set -e
|
||||||
|
|
||||||
#
|
#
|
||||||
# temporarily detect Apple Silicon (it's using /opt/homebrew instead of /usr/local)
|
# temporarily detect Apple Silicon (it's using /opt/homebrew instead of /usr/local)
|
||||||
#
|
#
|
||||||
if test -f /opt/homebrew/include/pcre2.h; then
|
if test -f /opt/homebrew/include/pcre2.h; then
|
||||||
make FLAGS="-O2 -s -Wall" INCS="-Isrc -Ilib -I/usr/local/include -I/opt/homebrew/include -pthread"
|
make -j${CPUS} FLAGS="-O2 -s -Wall" INCS="-Isrc -Ilib -I/usr/local/include -I/opt/homebrew/include -pthread"
|
||||||
else
|
else
|
||||||
make FLAGS="-O2 -s -Wall"
|
make -j${CPUS} FLAGS="-O2 -s -Wall"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user