summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-20 00:45:58 +0800
committerruki <[email protected]>2025-12-20 00:45:58 +0800
commit14c25db29718e67470b6d4847efef6b2146f9350 (patch)
treec063ece12537f4df38da4f237bd8c8834b1c88cb
parentd3ded5d78ea15d2f2299cab3d03165ab8d07951b (diff)
improve runenvs
-rw-r--r--xmake/modules/private/utils/toolchain.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/private/utils/toolchain.lua b/xmake/modules/private/utils/toolchain.lua
index f2b4ca593..29036a2c2 100644
--- a/xmake/modules/private/utils/toolchain.lua
+++ b/xmake/modules/private/utils/toolchain.lua
@@ -111,8 +111,9 @@ function _add_vsenv(toolchain, name, curenvs)
break
end
end
- if name == "INCLUDE" or name == "LIB" then
- toolchain:add("runenvs", name, table.concat(path.splitenv(new), ";"))
+ -- msvc-wine on linux
+ if (name == "INCLUDE" or name == "LIB") and not is_host("windows") then
+ toolchain:add("runenvs", name, path.joinenv(path.splitenv(new), ";"))
else
toolchain:add("runenvs", name, table.unwrap(path.splitenv(new)))
end