There was an error while loading. Please reload this page.
1 parent 4dcec42 commit d61762eCopy full SHA for d61762e
1 file changed
.cargo/rustc-wrapper.sh
@@ -2,7 +2,7 @@
2
3
# Redirect all output to log file except for the final exec'd command
4
LOG_FILE="/tmp/patch-log.txt"
5
-exec 3>&1 4>&2
+exec 9>&1 10>&2
6
exec >>"$LOG_FILE" 2>&1
7
8
set -eu
@@ -14,7 +14,7 @@ TARGET_PATCHED_DIR="$SCRIPT_DIR/target/patched-crates"
14
15
# --- No patching needed - run original args ---
16
if [ -z "${CARGO_PKG_NAME:-}" ] || [ -z "${CARGO_MANIFEST_DIR:-}" ]; then
17
- exec 1>&3 2>&4
+ exec 1>&9 2>&10
18
exec "$@"
19
fi
20
@@ -49,9 +49,9 @@ if [ -d "$PATCH_DIR" ]; then
49
new_args+=("${arg//$CARGO_MANIFEST_DIR/$PATCHED_SRC}")
50
done
51
52
53
exec "${new_args[@]}"
54
else
55
56
57
0 commit comments