-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.justfile
52 lines (39 loc) · 957 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
alias ggf := gotta-go-fast
# Default target
# Compile and run
default: run
# Compile and run
run:
zig build run
# Compile and run in release mode
run-fast:
zig build run --release=fast
# Speeeeeeed
gotta-go-fast: run-fast
# Compile in release mode
release:
zig build -Dtarget=x86_64-linux-gnu.2.17
release-win:
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-windows
release-osx:
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-macos -framework Cocoa
# Compile project with maven to ./target
build:
zig build
profile:
cd zb-core; zig build -DenableTracy
tracy -a 127.0.01 & zb-core/zig-out/bin/zb-bench
build-core:
cd zb-core; zig build
build-core-release:
cd zb-core; zig build --release=fast
# Benchmark zb-core
bench: build-core-release
hyperfine zb-core/zig-out/bin/zb-bench
# Clean cache
clean:
rm -rf zig-out
rm -rf .zig-cache
# Run all tests in project
test:
echo TODO