forked from gentoo-utils/gentoo-utils
23 lines
469 B
Bash
Executable File
23 lines
469 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
|
|
|
|
meson compile -C build || exit $?
|
|
|
|
ebegin "running check commands"
|
|
parallel --halt soon,fail=1 --keep-order -j$(nproc) < check_commands.txt
|
|
eend $? || exit $?
|