diff --git a/justfile b/justfile index fc2e297069b1..02d558aad9bd 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,9 @@ +default: + @just --list + +# Override this value by calling `just --set clang_version 18` +clang_version := "15" + prepare: cargo install gen-compile-commands @@ -6,3 +12,15 @@ compile-commands: clean: rm -f compile_commands.json + +build *args="//...": + bazel build {{args}} --action_env=CC=clang-{{clang_version}} --action_env=CXX=clang++-{{clang_version}} + +build-asan *args="//...": + just build {{args}} --config=asan --sandbox_debug + +test *args="//...": + bazel test {{args}} --action_env=CC=clang-{{clang_version}} --action_env=CXX=clang++-{{clang_version}} --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}} + +test-asan *args="//...": + just test {{args}} --config=asan