Green Sky
227425b90e
git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 67badf69416a74e74f6d7eb51dd96f37282b8455
36 lines
919 B
Bash
Executable File
36 lines
919 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
CACHEDIR="$HOME/cache"
|
|
|
|
. ".github/scripts/flags-$CC.sh"
|
|
add_flag -Werror
|
|
add_flag -fdiagnostics-color=always
|
|
add_flag -fno-omit-frame-pointer
|
|
add_flag -fsanitize=thread
|
|
cmake -B_build -H. -GNinja \
|
|
-DCMAKE_C_FLAGS="$C_FLAGS" \
|
|
-DCMAKE_CXX_FLAGS="$CXX_FLAGS" \
|
|
-DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \
|
|
-DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" \
|
|
-DCMAKE_UNITY_BUILD=ON \
|
|
-DMIN_LOGGER_LEVEL=TRACE \
|
|
-DMUST_BUILD_TOXAV=ON \
|
|
-DNON_HERMETIC_TESTS=ON \
|
|
-DSTRICT_ABI=ON \
|
|
-DTEST_TIMEOUT_SECONDS=120 \
|
|
-DUSE_IPV6=OFF \
|
|
-DAUTOTEST=ON
|
|
|
|
cd _build
|
|
|
|
ninja install -j"$(nproc)"
|
|
|
|
export TSAN_OPTIONS="color=always"
|
|
export TSAN_OPTIONS="$TSAN_OPTIONS,halt_on_error=1"
|
|
export TSAN_OPTIONS="$TSAN_OPTIONS,second_deadlock_stack=1"
|
|
export TSAN_OPTIONS="$TSAN_OPTIONS,symbolize=1"
|
|
ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:6
|