aboutsummaryrefslogtreecommitdiff
path: root/msvc-link-common
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-13 10:33:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-13 10:33:55 +0200
commit9f6facd4f3bcc3b7f522c74616c184d7b8cdbfb4 (patch)
tree18a3318341fd5f475b9e136934a364e42c39d474 /msvc-link-common
parent562856e6a0844b979e9e51749c7a0d228e723b9e (diff)
Add SDKBIN to link.exe's PATH since it may need to run mt.exe
Diffstat (limited to 'msvc-link-common')
-rwxr-xr-xmsvc-link-common8
1 files changed, 6 insertions, 2 deletions
diff --git a/msvc-link-common b/msvc-link-common
index 7b3481a..a83bac9 100755
--- a/msvc-link-common
+++ b/msvc-link-common
@@ -1,7 +1,7 @@
#! /usr/bin/env bash
-# Common link.exe driver that expects the VC and LIB variables to be set for
-# the specific MSVC version/configuration.
+# Common link.exe driver that expects the VCBIN, SDKBIN, and LIB variables to
+# be set for the specific MSVC version/configuration.
trap "{ exit 1; }" ERR
set -o errtrace # Trap in functions.
@@ -177,6 +177,10 @@ done
export LIB
+# link.exe may need to run mt.exe which is in the SDK.
+#
+export WINEPATH=$SDKBIN
+
# link.exe always sends diagnostics to stdout.
#
msvc_exec 1 "$VCBIN\\link.exe" "${args[@]}"