-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjustfile
57 lines (41 loc) · 1.53 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
45
46
47
48
49
50
51
52
53
54
55
56
57
# build with various profiles to populate the rustc cache
warmup:
# build with cranelift
-env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo build -Zcodegen-backend
# build without cranelift (as hx will do)
-cargo build
# build in release profile
-cargo build --release
# build unicorn dep, which is only used in tests, and takes a while
-cd core && env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo test -Zcodegen-backend
-cd core && cargo test
check:
env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo check -Zcodegen-backend
clippy:
env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo clippy -Zcodegen-backend
fmt:
cargo fmt
lint: check clippy fmt
test-core:
cd core && \
env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo test -Zcodegen-backend
test-flirt:
cd flirt && \
env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo test -Zcodegen-backend
test-pylancelot-rs:
cd pylancelot && \
cargo test # can't use cranelift when linking to python
test-pylancelot-py:
bash .github/scripts/pytest-pylancelot.sh
test-pylancelot: test-pylancelot-rs test-pylancelot-py
test-pyflirt-rs:
cd pyflirt && \
cargo test # can't use cranelift when linking to python
test-pyflirt-py:
bash .github/scripts/pytest-pyflirt.sh
test-pyflirt: test-pyflirt-rs test-pyflirt-py
test: test-core test-flirt test-pylancelot test-pyflirt
build:
env CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo build -Zcodegen-backend
build-release:
cargo build --release