This repository was archived by the owner on Nov 21, 2018. It is now read-only.
File tree 4 files changed +20
-8
lines changed
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"
4
4
authors = [
" Niko Matsakis <[email protected] >" ]
5
5
6
6
[dependencies ]
7
- syntex = " 0.42.2"
7
+ syntex = " = 0.42.2"
Original file line number Diff line number Diff line change 1
1
.PHONY : all touch clean
2
2
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
+
3
11
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
5
14
touch :
6
- cargo clean # note: leave the `incr` directory alone
15
+ cargo clean -p syntex_syntax
7
16
clean :
8
17
rm -rf incr/*
9
18
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"
4
4
authors = [
" Niko Matsakis <[email protected] >" ]
5
5
6
6
[dependencies ]
7
- syntex = " 0.42.2"
7
+ syntex = " = 0.42.2"
Original file line number Diff line number Diff line change 1
1
.PHONY : all touch clean
2
2
3
+ # Time how long it takes to build `syntex_syntax`. See
4
+ # `../syntax-0.42.2-incr-clean/makefile` for some further notes.
5
+
3
6
all :
4
- cargo rustc -- $(CARGO_RUSTC_OPTS )
7
+ cargo rustc -p syntex_syntax - - $(CARGO_RUSTC_OPTS )
5
8
touch :
6
- find . -name ' *.rs ' | xargs touch
9
+ cargo clean -p syntex_syntax
7
10
clean :
8
11
cargo clean
9
- rm Cargo.lock
12
+
You can’t perform that action at this time.
0 commit comments