forked from cloudflare/workerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
44 lines (31 loc) · 1.04 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
alias b := build
alias t := test
alias f := format
alias st := stream-test
default:
@just --list
clang_version := "18"
prepare:
cargo install gen-compile-commands
compile-commands:
rm -f compile_commands.json | gen-compile-commands --root . --compile-flags compile_flags.txt --out compile_commands.json --src-dir ./src
clean:
rm -f compile_commands.json
build *args="//...":
bazel build {{args}}
build-asan *args="//...":
just build {{args}} --config=asan --sandbox_debug
test *args="//...":
bazel test {{args}} --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}}
test-asan *args="//...":
just test {{args}} --config=asan
# e.g. just stream-test //src/cloudflare:cloudflare.capnp@eslint
stream-test args:
bazel test {{args}} --test_output=streamed --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-{{clang_version}}
# e.g. just node-test zlib
node-test test_name:
just stream-test //src/workerd/api/node:tests/{{test_name}}-nodejs-test
format:
python3 tools/cross/format.py
internal-pr:
./tools/unix/create-internal-pr.sh