Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 17e6309

Browse files
committed
update the syntex-0.42.2 makefiles
We are now timing specifically the syntex_syntax crate. Also, do not remove the Cargo.lock file -- I want to ensure we continue to build the same dependencies so our measurements are more reliable.
1 parent eca02b9 commit 17e6309

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

syntex-0.42.2-incr-clean/makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
.PHONY: all touch clean
22

3+
# The way that this is intended to work is as follows:
4+
# - We force the incremental data to be stored in the `incr` directory
5+
# - We clean precisely the syntex_syntax crate; but we do not touch the `incr` directory
6+
# - We rebuild, which will reuse the results from `incr` directory
7+
#
8+
# This can be compared against `syntex-0.42.2`, which does the same
9+
# thing, but without the `incr` directory.
10+
311
all:
4-
RUSTFLAGS="-Z incremental=incr -Z incremental-info" cargo rustc -- $(CARGO_RUSTC_OPTS)
12+
RUSTFLAGS="-Z incremental=incr" \
13+
cargo rustc -p syntex_syntax -- $(CARGO_RUSTC_OPTS) -Z incremental-info
514
touch:
6-
cargo clean # note: leave the `incr` directory alone
15+
cargo clean -p syntex_syntax
716
clean:
817
rm -rf incr/*
918
cargo clean
10-
rm Cargo.lock
19+

syntex-0.42.2/makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.PHONY: all touch clean
22

3+
# Time how long it takes to build `syntex_syntax`. See
4+
# `../syntax-0.42.2-incr-clean/makefile` for some further notes.
5+
36
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
7+
cargo rustc -p syntex_syntax -- $(CARGO_RUSTC_OPTS)
58
touch:
6-
find . -name '*.rs' | xargs touch
9+
cargo clean -p syntex_syntax
710
clean:
811
cargo clean
9-
rm Cargo.lock
12+

0 commit comments

Comments
 (0)