Skip to content

Commit

Permalink
Merge pull request #2483 from cloudflare/anonrig/improve-justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored Aug 7, 2024
2 parents 4bae509 + 527b721 commit f0b73b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
alias b := build
alias t := test

default:
@just --list

# Override this value by calling `just --set clang_version 18`
clang_version := "15"
clang_version := "18"

prepare:
cargo install gen-compile-commands
Expand All @@ -14,13 +16,13 @@ clean:
rm -f compile_commands.json

build *args="//...":
bazel build {{args}} --action_env=CC=clang-{{clang_version}} --action_env=CXX=clang++-{{clang_version}}
bazel build {{args}}

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}}
bazel test {{args}} --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}}

test-asan *args="//...":
just test {{args}} --config=asan

0 comments on commit f0b73b1

Please sign in to comment.