Skip to content

Commit d282e23

Browse files
committed
add build and test commands to justfile
1 parent 50151b7 commit d282e23

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

justfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
default:
2+
@just --list
3+
4+
# Override this value by calling `just --set clang_version 18`
5+
clang_version := "15"
6+
17
prepare:
28
cargo install gen-compile-commands
39

@@ -6,3 +12,15 @@ compile-commands:
612

713
clean:
814
rm -f compile_commands.json
15+
16+
build *args="//...":
17+
bazel build {{args}} --action_env=CC=clang-{{clang_version}} --action_env=CXX=clang++-{{clang_version}}
18+
19+
build-asan *args="//...":
20+
just build {{args}} --config=asan --sandbox_debug
21+
22+
test *args="//...":
23+
bazel test {{args}} --action_env=CC=clang-{{clang_version}} --action_env=CXX=clang++-{{clang_version}} --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}}
24+
25+
test-asan *args="//...":
26+
just test {{args}} --config=asan

0 commit comments

Comments
 (0)