12 lines
442 B
Bash
Executable File
12 lines
442 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
cxx=${CXX_HOST:-c++}
|
|
build_dir=${1:-host-build}
|
|
mkdir -p "$build_dir"
|
|
$cxx -std=c++17 -Wall -Wextra -Werror -pedantic \
|
|
-fsanitize=address,undefined -fno-omit-frame-pointer \
|
|
-Itests/host-shim -Iinclude tests/synchronization_host.cpp \
|
|
-o "$build_dir/synchronization_host"
|
|
ASAN_OPTIONS=detect_leaks=1 "$build_dir/synchronization_host"
|
|
echo "PASS host: binary/counting bounds and explicit notification actions"
|