diff options
| author | Redbeanw44602 <[email protected]> | 2024-12-30 20:21:12 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2024-12-30 20:21:12 +0800 |
| commit | 47519ac7cfa6a2bd7c6dbed3ebea8a768dc9e033 (patch) | |
| tree | 62bc461a0058e723f217bd325d1609e1b2f49768 | |
| parent | 5665dc8df7a837d09c905c62591efefba92fb4df (diff) | |
fix wrong envsep under msvc-wine.
| -rw-r--r-- | xmake/modules/detect/sdks/find_vstudio.lua | 7 |
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 |
