aboutsummaryrefslogtreecommitdiff
path: root/msvc-dispatch
diff options
context:
space:
mode:
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"