summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2024-12-30 20:21:12 +0800
committerRedbeanw44602 <[email protected]>2024-12-30 20:21:12 +0800
commit47519ac7cfa6a2bd7c6dbed3ebea8a768dc9e033 (patch)
tree62bc461a0058e723f217bd325d1609e1b2f49768 /xmake/modules
parent5665dc8df7a837d09c905c62591efefba92fb4df (diff)
fix wrong envsep under msvc-wine.
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index 52241cdc5..2b78b17c0 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -174,7 +174,11 @@ function find_build_tools(opt)
if #lib ~= 0 then
local vcvars = {
BUILD_TOOLS_ROOT = sdkdir,
- INCLUDE = path.joinenv(includedirs),
+
+ -- vs runs in a windows ctx, so the envsep is always ";"
+ INCLUDE = path.joinenv(includedirs, ';'),
+ LIB = path.joinenv(lib, ';'),
+
WindowsSdkDir = variables.WindowsSdkDir,
WindowsSDKVersion = WindowsSDKVersion,
VCToolsInstallDir = variables.VCToolsInstallDir,
@@ -193,7 +197,6 @@ function find_build_tools(opt)
end
vcvars.VSCMD_ARG_TGT_ARCH = target_arch
- vcvars.LIB = path.joinenv(lib)
vcvars.BUILD_TOOLS_BIN = path.joinenv(buidl_tools_bin)
local PATH = buidl_tools_bin