desperate hack: hard-code bash path on Windows
This commit is contained in:
parent
04b523ff34
commit
a12decc07a
@ -13,6 +13,15 @@ function endgroup {
|
||||
|
||||
begingroup "Building Miri"
|
||||
|
||||
# Special Windows hacks
|
||||
if [ "$HOST_TARGET" = i686-pc-windows-msvc ]; then
|
||||
# The $BASH variable is `/bin/bash` here, but that path does not actually work. There are some
|
||||
# hacks in place somewhere to try to paper over this, but the hacks dont work either (see
|
||||
# <https://github.com/rust-lang/miri/pull/3402>). So we hard-code the correct location for Github
|
||||
# CI instead.
|
||||
BASH="C:/Program Files/Git/usr/bin/bash"
|
||||
fi
|
||||
|
||||
# Determine configuration for installed build
|
||||
echo "Installing release version of Miri"
|
||||
export RUSTFLAGS="-D warnings"
|
||||
@ -63,7 +72,7 @@ function run_tests {
|
||||
done
|
||||
|
||||
# Check that the benchmarks build and run, but without actually benchmarking.
|
||||
HYPERFINE="bash -c" ./miri bench
|
||||
HYPERFINE="'$BASH' -c" ./miri bench
|
||||
fi
|
||||
|
||||
## test-cargo-miri
|
||||
|
Loading…
Reference in New Issue
Block a user