diff options
| author | ruki <[email protected]> | 2023-02-19 22:04:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-19 22:04:49 +0800 |
| commit | 5c1228e9b4c7ffaafc9f650215d7aac79a4c7ddd (patch) | |
| tree | c09824134fedf302f2af30afff61f76584f9662b | |
| parent | c8e59d4d33127eaf73fae8797772a6b641ba8601 (diff) | |
deduplicate envs #3391
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index ac1578e78..a63ca208b 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -172,6 +172,7 @@ function _make_targetinfo(mode, arch, target) end end for k, v in table.orderpairs(addrunenvs) do + v = table.unique(v) if k:upper() == "PATH" then runenvs[k] = _make_dirs(v) .. ";$([System.Environment]::GetEnvironmentVariable('" .. k .. "'))" else |
