-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
36 lines (29 loc) · 903 Bytes
/
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
features := "llvm-13"
build:
cargo build --release --no-default-features --features={{features}}
test: build
cargo test --no-default-features --features={{features}}
python3 specs.py
clean:
rm -f a.out
rm -rf specbin/
cargo clean
docs:
cd docs/; docket
clippy:
cargo clippy
bench opt_level="3": build
#!/usr/bin/env python3
import os
import glob
import subprocess
for bench in glob.glob("spec/bench/*.ulg"):
output = bench.lstrip('spec/').rstrip('.ulg')
output = os.path.join("specbin", "bench", output)
try:
os.makedirs(os.path.dirname(output))
except OSError:
pass
print("bench={0}, output={1}, opt={2}".format(bench, output, {{opt_level}}))
subprocess.call(["target/release/ullage", bench, "-O{{opt_level}}", "-o", output])
subprocess.call(["time", output])