diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-13 10:33:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-13 10:33:55 +0200 |
commit | 9f6facd4f3bcc3b7f522c74616c184d7b8cdbfb4 (patch) | |
tree | 18a3318341fd5f475b9e136934a364e42c39d474 /msvc-cl-common | |
parent | 562856e6a0844b979e9e51749c7a0d228e723b9e (diff) |
Add SDKBIN to link.exe's PATH since it may need to run mt.exe
Diffstat (limited to 'msvc-cl-common')
-rwxr-xr-x | msvc-cl-common | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/msvc-cl-common b/msvc-cl-common index 33a68ef..e101dd8 100755 --- a/msvc-cl-common +++ b/msvc-cl-common @@ -1,7 +1,8 @@ #! /usr/bin/env bash -# Common cl.exe driver that expects the VC, INCLUDE, and LIB variables to -# be set for the specific MSVC version/configuration. +# Common cl.exe driver that expects the VCBIN, INCLUDE, and, if running as a +# linker, SDKBIN, LIB variables to be set for the specific MSVC +# version/configuration. trap "{ exit 1; }" ERR set -o errtrace # Trap in functions. @@ -144,4 +145,8 @@ done export INCLUDE export LIB +# The linker may need to run mt.exe which is in the SDK. +# +export WINEPATH=$SDKBIN + msvc_exec $diag "$VCBIN\\cl.exe" "${args[@]}" |