We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f0faed commit a0130f3Copy full SHA for a0130f3
cargo-miri/miri
@@ -0,0 +1,5 @@
1
+#!/bin/sh
2
+# Hack to work around https://github.com/rust-analyzer/rust-analyzer/issues/10793.
3
+cd "$(dirname "$0")"/..
4
+exec ./miri "$@"
5
+
miri
@@ -39,10 +39,11 @@ EOF
39
TARGET=$(rustc --version --verbose | grep "^host:" | cut -d ' ' -f 2)
40
SYSROOT=$(rustc --print sysroot)
41
LIBDIR=$SYSROOT/lib/rustlib/$TARGET/lib
42
-MIRIDIR=$(dirname "$0")
43
if readlink -e . &>/dev/null; then
44
# This platform supports `readlink -e`.
45
- MIRIDIR=$(readlink -e "$MIRIDIR")
+ MIRIDIR=$(dirname "$(readlink -e "$0")")
+else
46
+ MIRIDIR=$(dirname "$0")
47
fi
48
if ! test -d "$LIBDIR"; then
49
echo "Something went wrong determining the library dir."
0 commit comments