We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77e1d3a commit 73adaa0Copy full SHA for 73adaa0
run-test.sh
@@ -26,9 +26,8 @@ if ! test -f "$RUST_SRC/Cargo.lock"; then
26
echo "Set RUST_SRC to the Rust source directory, or install the rust-src component."
27
exit 1
28
fi
29
-if readlink -e . &>/dev/null; then
30
- RUST_SRC=$(readlink -e "$RUST_SRC")
31
-fi
+# macOS does not have a useful readlink/realpath so we have to use Python instead...
+RUST_SRC=$(python -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$RUST_SRC")
32
33
# update symlink
34
rm -f lib$CRATE
0 commit comments