forked from 0xPolygonMiden/miden-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 820 Bytes
/
Makefile
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
FEATURES_INTERNALS=--features internals
FEATURES_CONCURRENT_EXEC=--features concurrent,executable
FEATURES_LOG_TREE=--features concurrent,executable,tracing-forest
FEATURES_METAL_EXEC=--features concurrent,executable,metal
PROFILE_OPTIMIZED=--profile optimized
PROFILE_TEST=--profile test-release
bench:
cargo bench $(PROFILE_OPTIMIZED)
exec:
cargo build $(PROFILE_OPTIMIZED) $(FEATURES_CONCURRENT_EXEC)
exec-metal:
cargo build $(PROFILE_OPTIMIZED) $(FEATURES_METAL_EXEC)
exec-avx2:
RUSTFLAGS="-C target-feature=+avx2" cargo build $(PROFILE_OPTIMIZED) $(FEATURES_CONCURRENT_EXEC)
exec-sve:
RUSTFLAGS="-C target-feature=+sve" cargo build $(PROFILE_OPTIMIZED) $(FEATURES_CONCURRENT_EXEC)
exec-info:
cargo build $(PROFILE_OPTIMIZED) $(FEATURES_LOG_TREE)
test:
cargo test $(PROFILE_TEST) $(FEATURES_INTERNALS)