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

Commit d5855db

Browse files
committed
Add $(CARGO_OPTS) to make all targets.
1 parent 6485882 commit d5855db

File tree

14 files changed

+22
-16
lines changed

14 files changed

+22
-16
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ multiple crates, each benchmark has one "crate of interest" which is the one
55
whose compilation time is measured.
66

77
Each benchmark has a makefile with the following targets.
8-
* `all`: builds the entire benchmark. The `CARGO_RUSTC_OPTS` environment
9-
variable can be specified to pass extra arguments to rustc invocations.
8+
* `all`: builds the entire benchmark. The following environment variables can
9+
be used to influence how it is built.
10+
* `CARGO_OPTS`: extra arguments to the `cargo` invocation.
11+
* `CARGO_RUSTC_OPTS`: extra arguments to `cargo rustc` invocations.
1012
* `touch`: touches or removes files in such a way that a subsequent `make`
1113
invocation will build only the crate of interest.
1214
* `clean`: removes all build artifacts.
@@ -16,5 +18,8 @@ site makes use of the `process.sh` script plus some auxiliary scripts not in
1618
this repository.
1719

1820
Local runs comparing two different compilers can be performed with
19-
`compare.py`. This is useful when evaluating compile-time optimizations.
21+
`compare.py`. Invocation is simple:
22+
> `./compare.py <rustc1> <rustc2>`
23+
24+
This is useful when evaluating compile-time optimizations.
2025

futures-rs-test-all/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc --test all -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc --test all $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
rm -f target/debug/all-*
77
clean:

helloworld/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

html5ever-2016-08-25/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

hyper.0.5.0/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

inflate-0.1.0/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

issue-32062-equality-relations-complexity/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

issue-32278-big-array-of-strings/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

jld-day15-parser/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

piston-image-0.10.3/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

regex.0.1.30/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
find . -name '*.rs' | xargs touch
77
clean:

rust-encoding-0.3.0/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all touch clean
22

33
all:
4-
cargo rustc -- $(CARGO_RUSTC_OPTS)
4+
cargo rustc $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
55
touch:
66
touch src/lib.rs
77
clean:

syntex-0.42.2-incr-clean/makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
all:
1212
RUSTFLAGS="-Z incremental=incr" \
13-
cargo rustc -p syntex_syntax -- $(CARGO_RUSTC_OPTS) -Z incremental-info
13+
cargo rustc -p syntex_syntax $(CARGO_OPTS) -- \
14+
$(CARGO_RUSTC_OPTS) -Z incremental-info
1415
touch:
1516
cargo clean -p syntex_syntax
1617
clean:

syntex-0.42.2/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# `../syntax-0.42.2-incr-clean/makefile` for some further notes.
55

66
all:
7-
cargo rustc -p syntex_syntax -- $(CARGO_RUSTC_OPTS)
7+
cargo rustc -p syntex_syntax $(CARGO_OPTS) -- $(CARGO_RUSTC_OPTS)
88
touch:
99
cargo clean -p syntex_syntax
1010
clean:

0 commit comments

Comments
 (0)