mirror of
https://github.com/oxalica/rust-overlay.git
synced 2024-10-04 13:17:21 +03:00
1debf72906
Fix #44
12 lines
378 B
Bash
Executable File
12 lines
378 B
Bash
Executable File
#!@bash@ -e
|
|
src_dir="@out@/lib/rustlib/src/rust/library"
|
|
if [[ ! -v XARGO_RUST_SRC ]]; then
|
|
if [[ ! -d "$src_dir" ]]; then
|
|
echo '`rust-src` is required by miri but not installed.' >&2
|
|
echo 'Please either install component `rust-src` or set `XARGO_RUST_SRC`.' >&2
|
|
exit 1
|
|
fi
|
|
export XARGO_RUST_SRC="$src_dir"
|
|
fi
|
|
exec -a "$0" "@cargo_miri@" "$@"
|