This repository was archived by the owner on Nov 21, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed
Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ version = "0.1.0"
44authors = [
" Niko Matsakis <[email protected] >" ]
55
66[dependencies ]
7- syntex = " 0.42.2"
7+ syntex = " = 0.42.2"
Original file line number Diff line number Diff line change 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+
311all :
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
514touch :
6- cargo clean # note: leave the `incr` directory alone
15+ cargo clean -p syntex_syntax
716clean :
817 rm -rf incr/*
918 cargo clean
10- rm Cargo.lock
19+
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ version = "0.1.0"
44authors = [
" Niko Matsakis <[email protected] >" ]
55
66[dependencies ]
7- syntex = " 0.42.2"
7+ syntex = " = 0.42.2"
Original file line number Diff line number Diff line change 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+
36all :
4- cargo rustc -- $(CARGO_RUSTC_OPTS )
7+ cargo rustc -p syntex_syntax - - $(CARGO_RUSTC_OPTS )
58touch :
6- find . -name ' *.rs ' | xargs touch
9+ cargo clean -p syntex_syntax
710clean :
811 cargo clean
9- rm Cargo.lock
12+
You can’t perform that action at this time.
0 commit comments