File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 79
79
MIRIDIR=$( python3 -c ' import os, sys; print(os.path.dirname(os.path.realpath(sys.argv[1])))' " $0 " )
80
80
# Used for rustc syncs.
81
81
JOSH_FILTER=" :at_commit=75dd959a3a40eb5b4574f8d2e23aa6efbeb33573[:prefix=src/tools/miri]:/src/tools/miri"
82
+ # Needed for `./miri bench`.
83
+ TOOLCHAIN=$( cd " $MIRIDIR " ; rustup show active-toolchain | head -n 1 | cut -d ' ' -f 1)
82
84
83
85
# # Early commands, that don't do auto-things and don't want the environment-altering things happening below.
84
86
case " $COMMAND " in
@@ -189,6 +191,8 @@ if [ -z "$MIRI_AUTO_OPS" ]; then
189
191
# other code has run.
190
192
if [ -f " $MIRIDIR /.auto-everything" ] || [ -f " $MIRIDIR /.auto-toolchain" ] ; then
191
193
$0 toolchain
194
+ # Let's make sure to actually use that toolchain, too.
195
+ TOOLCHAIN=miri
192
196
fi
193
197
194
198
if [ -f " $MIRIDIR /.auto-everything" ] || [ -f " $MIRIDIR /.auto-fmt" ] ; then
202
206
203
207
# # Prepare the environment
204
208
# Determine some toolchain properties
205
- TOOLCHAIN=$( cd " $MIRIDIR " ; rustup show active-toolchain | head -n 1 | cut -d ' ' -f 1)
206
209
TARGET=$( rustc +$TOOLCHAIN --version --verbose | grep " ^host:" | cut -d ' ' -f 2)
207
210
SYSROOT=$( rustc +$TOOLCHAIN --print sysroot)
208
211
LIBDIR=$SYSROOT /lib/rustlib/$TARGET /lib
You can’t perform that action at this time.
0 commit comments