-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.toml
75 lines (67 loc) · 1.4 KB
/
Makefile.toml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
CORE = { script = ["nproc"] }
CUR_TARGET = { script = ['''
if [ -z "${TARGET}" ]; then
TARGET=$(rustc -vV | grep "host" | awk '{print $2}')
echo "${TARGET}"
else
echo "${TARGET}"
fi
'''] }
RAYON_NUM_THREADS = "${CORE}"
[tasks.build]
# Override the default `--all-features`, that's broken, because some of our features are mutually exclusive.
args = ["build"]
[tasks.tests]
args = [
"test",
# Run everything but 'benches'.
"--lib",
"--bins",
"--tests",
"--examples",
"--release",
"--target",
"${CUR_TARGET}",
"--workspace",
"--exclude",
"ceno_rt",
]
command = "cargo"
workspace = false
[tasks.fmt-all-check]
args = ["fmt", "--all", "--", "--check"]
command = "cargo"
workspace = false
[tasks.fmt-all]
args = ["fmt", "--all"]
command = "cargo"
workspace = false
[tasks.clippy-all]
args = ["clippy", "--all-features", "--all-targets", "--", "-D", "warnings"]
command = "cargo"
workspace = false
[tasks.fmt]
args = ["fmt", "-p", "ceno_zkvm", "--", "--check"]
command = "cargo"
workspace = false
[tasks.riscv_stats]
args = ["run", "--bin", "riscv_stats"]
command = "cargo"
workspace = false
[tasks.clippy]
args = [
"clippy",
"--workspace",
"--all-targets",
"--exclude",
"ceno_rt",
"--target",
"${CUR_TARGET}",
"--",
"-D",
"warnings",
]
command = "cargo"
workspace = false