@@ -90,10 +90,10 @@ baseline() {
90
90
smart_echo " Build" " rust-clippy:master"
91
91
git switch master
92
92
git pull origin master --rebase
93
- x build src/tools/clippy > /dev/null
93
+ ./ x build src/tools/clippy > /dev/null
94
94
smart_echo " Benchmark" " Benchmarking master!"
95
95
cd ../rustc-perf || error " Couldn't enter rustc-perf"
96
- ./target/release/collector bench_local ../rust/build/host/stage2/rustc --profiles Clippy --clippy ../rust/build/host/stage2/cargo-clippy --id " master-$( date +%Y-%m-%d) "
96
+ ./target/release/collector bench_local ../rust/build/host/stage2/bin/ rustc --profiles Clippy --clippy ../rust/build/host/stage2/bin /cargo-clippy --id " master-$( date +%Y-%m-%d) "
97
97
}
98
98
99
99
if [ -f " becnh" ]; then # We're in the same directory as the becnh script.
150
150
# Check if there's a Clippy PR
151
151
cd rust-clippy || error " Couldn't enter rust-clippy"
152
152
153
- if [ -n " $1 " ] && [[ " $1 " =~ ^\# ? [0-9]+$ ]]; then
154
- # Make sure that there are both a PR ID and branch
155
- if [ $# -ne 2 ]; then
156
- display_help
153
+
154
+ if [ ! " $MASTER " ]; then
155
+ if [ -n " $1 " ] && [[ " $1 " =~ ^\# ? [0-9]+$ ]]; then
156
+ # Make sure that there are both a PR ID and branch
157
+ if [ $# -ne 2 ]; then
158
+ display_help
159
+ fi
160
+ smart_echo " Cloning" " The Clippy PR ($1 :$2 )"
161
+ git fetch origin pull/" $1 " /head:" $2 " || (echo " Something went wrong" && exit)
162
+ else
163
+ display_help
157
164
fi
158
- smart_echo " Cloning" " The Clippy PR ($1 :$2 )"
159
- git fetch origin pull/" $1 " /head:" $2 " || (echo " Something went wrong" && exit)
160
- else
161
- display_help
162
165
fi
163
166
164
167
# Move that Clippy submodule to the rust-lang/rust thingy
222
225
223
226
smart_echo " Benchmark" " Starting benchmarks!"
224
227
cd ../rustc-perf || error " Couldn't enter rustc-perf"
225
- ./target/release/collector bench_local ../rust/build/host/stage2/rustc --profiles Clippy --clippy ../rust/build/host/stage2/cargo-clippy --id " PR-$1 "
228
+ ./target/release/collector bench_local ../rust/build/host/stage2/bin/ rustc --profiles Clippy --clippy ../rust/build/host/stage2/bin /cargo-clippy --id " PR-$1 "
226
229
227
230
# =========================== Let's see about also benchmarking master
228
231
0 commit comments