mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
895a6af122
We now depend on libsodium unconditionally. Future work will require functions from libsodium, and nobody we're aware of uses the nacl build for anything other than making sure it still works on CI.
25 lines
559 B
Bash
Executable File
25 lines
559 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
NPROC=$(nproc)
|
|
|
|
. ".github/scripts/flags-$CC.sh"
|
|
|
|
add_ld_flag -Wl,-z,defs
|
|
|
|
# Make compilation error on a warning
|
|
add_flag -Werror
|
|
|
|
add_config_flag --disable-ipv6
|
|
add_config_flag --enable-daemon
|
|
add_config_flag --with-log-level=TRACE
|
|
|
|
autoreconf -fi
|
|
mkdir -p _build
|
|
cd _build # pushd
|
|
../configure "${CONFIG_FLAGS[@]}" || (cat config.log && false)
|
|
make "-j$NPROC" -k CFLAGS="$C_FLAGS" LDFLAGS="$LD_FLAGS"
|
|
make -j50 -k distcheck DISTCHECK_CONFIGURE_FLAGS="${CONFIG_FLAGS[*]}" || (cat tox-*/_build/build/test-suite.log && false)
|
|
cd - # popd
|