Skip to content

Commit

Permalink
add build and test commands to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Aug 1, 2024
1 parent 30a6f9c commit 928e981
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

0 comments on commit 928e981

Please sign in to comment.