Skip to content

Commit 0aa0720

Browse files
author
xlings-ci
committed
probe: call MSVC link.exe by path (Git Bash has its own link)
1 parent 323f76b commit 0aa0720

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/probe/msvc_facts.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export MSYS2_ARG_CONV_EXCL='*' # keep /GL etc. away from MSYS path conversion
77
W="$RUNNER_TEMP/msvc-facts"; rm -rf "$W"; mkdir -p "$W"; cd "$W"
88

99
run() { echo "\$ $*"; "$@" 2>&1; echo "rc=$?"; }
10+
# Git Bash ships /usr/bin/link (coreutils); name MSVC's linker by path.
11+
LINK="$(cygpath -u "${VCToolsInstallDir}")bin/Hostx64/x64/link.exe"
12+
link() { "$LINK" "$@"; }
1013
section() { echo; echo "### $1"; }
1114
hex() { od -A d -t x1 -N 64 "$1"; }
1215

0 commit comments

Comments
 (0)