chore: Fix FreeBSD build.

This commit is contained in:
iphydf 2021-12-22 01:18:43 +00:00
parent e92a67ed5f
commit d73393a078
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -5,16 +5,19 @@
set -eux set -eux
if [ "$PWD" != "/work" ]; then
cd .. cd ..
mv c-toxcore / mv c-toxcore /
mkdir c-toxcore mkdir c-toxcore
cd /work
fi
pushd /work . cmake-freebsd-run.sh
. cmake-freebsd-env.sh
popd
# === Get VM ready to build the code === # === Get VM ready to build the code ===
gunzip "$IMAGE_NAME.gz"
start_vm start_vm
# Copy over toxcore code from Travis to qemu # Copy over toxcore code from Travis to qemu
@ -42,7 +45,7 @@ RUN 'cmake -B_build -Hc-toxcore \
-DMUST_BUILD_TOXAV=ON \ -DMUST_BUILD_TOXAV=ON \
-DNON_HERMETIC_TESTS=ON \ -DNON_HERMETIC_TESTS=ON \
-DSTRICT_ABI=ON \ -DSTRICT_ABI=ON \
-DTEST_TIMEOUT_SECONDS=300 \ -DTEST_TIMEOUT_SECONDS=90 \
-DUSE_IPV6=OFF \ -DUSE_IPV6=OFF \
-DAUTOTEST=ON' -DAUTOTEST=ON'