-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (31 loc) · 949 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
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: usage deps build check test clean
UNAME := $(shell uname)
usage:
@echo "Usage:"
@echo " deps: Installs the necesarry dependencies."
@echo " build: Builds the crate."
@echo " check: Checks format and lints."
@echo " test: Runs all tests."
@echo " clean: Cleans the built artifacts."
build:
cargo build --release --features benchmark
check:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo test
clean:
cargo clean
rm -rf compiled_programs/
deps:
ifeq ($(UNAME), Darwin)
deps: deps-macos
endif
deps:
deps-macos:
-brew install llvm@19 --quiet
deps-bench:
cargo build --release --features benchmark,profiling,structured_logging
cp target/release/replay target/release/replay-bench-native
cargo build --release --features benchmark,profiling,structured_logging,only_cairo_vm
cp target/release/replay target/release/replay-bench-vm