diff options
| author | ruki <[email protected]> | 2022-10-29 22:22:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-29 22:22:33 +0800 |
| commit | b3f903777bfde99b9d69aaa2183175d3babe289b (patch) | |
| tree | 1e1cdad3ff474caf3e8488863b280a5f573dbf3c /xmake/plugins/project/vsxmake/getinfo.lua | |
| parent | 2dcbc30142e15588356974067c36e377c72b7dd1 (diff) | |
improve vs/vsxmake project generator
Diffstat (limited to 'xmake/plugins/project/vsxmake/getinfo.lua')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index b13900690..59ad0ce02 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -257,10 +257,15 @@ function _make_vsinfo_archs() end end if not vsinfo_archs then - vsinfo_archs = toolchain.load("msvc"):config("vcarchs") - end - if not vsinfo_archs then - vsinfo_archs = platform.archs() + local default_archs = toolchain.load("msvc"):config("vcarchs") + if not default_archs then + default_archs = platform.archs() + end + if default_archs then + default_archs = hashset.from(table.wrap(default_archs)) + default_archs:remove("arm64") + vsinfo_archs = default_archs:to_array() + end end end if not vsinfo_archs or #vsinfo_archs == 0 then |
