Files
gentoo-utils/check.sh
2025-11-30 18:49:49 +00:00

21 lines
434 B
Bash
Executable File

#!/bin/bash
source /etc/profile
source /lib/gentoo/functions.sh
export PATH="${HOME}/.local/bin:${PATH}" CC=clang CXX=clang++
lld=$(command -v lld)
if [[ -n ${ldd} ]]; then
export LDFLAGS=-fuse-ld=${lld}
fi
if [[ ! -d build ]]; then
meson setup -Dfuzz=enabled -Dtests=enabled build || exit $?
fi
ebegin "running check commands"
parallel --halt soon,fail=1 --keep-order -j$(nproc) < check_commands.txt
eend $? || exit $?