summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vsxmake
diff options
context:
space:
mode:
authorruki <[email protected]>2022-01-29 00:46:37 +0800
committerruki <[email protected]>2022-01-29 00:46:37 +0800
commit0b8b054bcd07172fc2b84919d5a4181c8ab80ce6 (patch)
tree8c1c66316a29b6d27e0cb3dee20bb09a986092c4 /xmake/plugins/project/vsxmake
parent1971c40e500cab7072426f64ac4501ccdd8ce15e (diff)
fix runenvs
Diffstat (limited to 'xmake/plugins/project/vsxmake')
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 965e55028..e9403cb35 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -190,9 +190,9 @@ function _make_targetinfo(mode, arch, target)
end
for k, v in pairs(addrunenvs) do
if k:upper() == "PATH" then
- runenvs[k] = format("%s;$([System.Environment]::GetEnvironmentVariable('%s'))", _make_dirs(v), k)
+ runenvs[k] = _make_dirs(v) .. "$([System.Environment]::GetEnvironmentVariable('" .. k .. "'))"
else
- runenvs[k] = format("%s;$([System.Environment]::GetEnvironmentVariable('%s'))", path.joinenv(v), k)
+ runenvs[k] = path.joinenv(v) .. "$([System.Environment]::GetEnvironmentVariable('" .. k .."'))"
end
end
for k, v in pairs(setrunenvs) do