We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 531211c commit f56cd06Copy full SHA for f56cd06
miri
@@ -39,7 +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=$(readlink -e "$(dirname "$0")")
+MIRIDIR=$(dirname "$0")
43
+if readlink -e . >/dev/null; then
44
+ # This platform supports `readlink -e`.
45
+ MIRIDIR=$(readlink -e "$MIRIDIR")
46
+fi
47
if ! test -d "$LIBDIR"; then
48
echo "Something went wrong determining the library dir."
49
echo "I got $LIBDIR but that does not exist."
0 commit comments