From 47519ac7cfa6a2bd7c6dbed3ebea8a768dc9e033 Mon Sep 17 00:00:00 2001 From: Redbeanw44602 Date: Mon, 30 Dec 2024 20:21:12 +0800 Subject: fix wrong envsep under msvc-wine. --- xmake/modules/detect/sdks/find_vstudio.lua | 7 +++++-- 1 file 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 -- cgit v1.3.1