Skip to content

Commit

Permalink
Move make release rule to be default
Browse files Browse the repository at this point in the history
  • Loading branch information
theryangeary committed Aug 13, 2020
1 parent 1dc35e8 commit 5981201
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.PHONY: release
release:
cargo build --release

.PHONY: release-debug
release-debug:
RUSTFLAGS=-g cargo build --release

flamegraph: release-debug
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/working.svg
Expand All @@ -17,10 +25,3 @@ bench: release
bench_commit: release
test/bench.sh `git log -n 1 --pretty=format:"%h"`

.PHONY: release-debug
release-debug:
RUSTFLAGS=-g cargo build --release

.PHONY: release
release:
cargo build --release

0 comments on commit 5981201

Please sign in to comment.