aboutsummaryrefslogtreecommitdiff
path: root/msvc-dispatch
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-29 03:23:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-29 19:59:24 +0300
commit1e9c3d01783d0c4c8f4d38baa662fa2b836a710b (patch)
tree3b470678b1b36dc88ab7a6ef9cc4ae91e60b2f5c /msvc-dispatch
parent6513bb7b269ea8b39dfed0e86a2df9a01ee23416 (diff)
Add Windows 10 SDK discovery
Diffstat (limited to 'msvc-dispatch')
-rwxr-xr-xmsvc-dispatch7
1 files changed, 7 insertions, 0 deletions
diff --git a/msvc-dispatch b/msvc-dispatch
index 4c2bf2d..5180487 100755
--- a/msvc-dispatch
+++ b/msvc-dispatch
@@ -63,6 +63,13 @@ MSVC_WINEPREFIX="$(lookup_value "WINEPREFIX")"
MSVC_INSTALLDIR="$(lookup_value "INSTALLDIR")"
MSVC_SDKVERSION="$(lookup_value "SDKVERSION")"
+# Set an alternative .wine directory if requested. WINEPREFIX environment
+# variable is recognized by wine and winepath programs.
+#
+if [ -n "$MSVC_WINEPREFIX" ]; then
+ export WINEPREFIX="$MSVC_WINEPREFIX"
+fi
+
# Load the configuration.
#
source "$src_dir/msvc-$major/msvc-$major$minor-$target"