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

Commit 8c17dc4

Browse files
committed
update syntex-0.42.2 to use the new patches scheme
we first build normally, then incrementally (with no saved state), and finally incrementally again (without changing anything)
1 parent 95aeb1c commit 8c17dc4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

syntex-0.42.2/makefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,22 @@
33
# Time how long it takes to build `syntex_syntax`. See
44
# `../syntax-0.42.2-incr-clean/makefile` for some further notes.
55

6-
all:
6+
all@000-base:
77
cargo rustc -p syntex_syntax $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
8+
all@010-incr:
9+
find . -name '*.rs' | xargs touch
10+
RUSTFLAGS="-Z incremental=incr" \
11+
cargo rustc -p syntex_syntax $(CARGO_OPTS) -- \
12+
$(CARGO_RUSTC_OPTS) -Z incremental-info
13+
all@020-clean:
14+
find . -name '*.rs' | xargs touch
15+
RUSTFLAGS="-Z incremental=incr" \
16+
cargo rustc -p syntex_syntax $(CARGO_OPTS) -- \
17+
$(CARGO_RUSTC_OPTS) -Z incremental-info
818
touch:
9-
cargo clean -p syntex_syntax
19+
find . -name '*.rs' | xargs touch
20+
rm -rf incr
1021
clean:
1122
cargo clean
1223
patches:
13-
@echo ''
24+
@echo '@000-base @010-incr @020-clean'

0 commit comments

Comments
 (0)