forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 2.68 KB
/
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
41
42
43
44
45
docker-nearcore:
DOCKER_BUILDKIT=1 docker build -t nearcore -f Dockerfile .
docker-nearcore-nightly:
DOCKER_BUILDKIT=1 docker build -t nearcore-nightly -f Dockerfile.nightly .
RUST_OPTIONS:=+stable
export RUSTFLAGS = -D warnings
release:
cargo $(RUST_OPTIONS) build -p neard --release
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone --release
cargo $(RUST_OPTIONS) build -p state-viewer --release
cargo $(RUST_OPTIONS) build -p store-validator --release
debug:
CARGO_PROFILE_RELEASE_DEBUG=true cargo $(RUST_OPTIONS) build -p neard
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone
cargo $(RUST_OPTIONS) build -p state-viewer
cargo $(RUST_OPTIONS) build -p store-validator
perf-release:
CARGO_PROFILE_RELEASE_DEBUG=true cargo $(RUST_OPTIONS) build -p neard --release --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone --release --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p state-viewer --release --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p store-validator --release --features performance_stats,memory_stats
perf-debug:
CARGO_PROFILE_RELEASE_DEBUG=true cargo $(RUST_OPTIONS) build -p neard --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p state-viewer --features performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p store-validator --features performance_stats,memory_stats
nightly-release:
CARGO_PROFILE_RELEASE_DEBUG=true cargo $(RUST_OPTIONS) build -p neard --release --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone --release --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p state-viewer --release --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p store-validator --release --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
nightly-debug:
CARGO_PROFILE_RELEASE_DEBUG=true cargo $(RUST_OPTIONS) build -p neard --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p near-vm-runner-standalone --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p state-viewer --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats
cargo $(RUST_OPTIONS) build -p store-validator --features nightly_protocol,nightly_protocol_features,performance_stats,memory_stats