summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-12-13 22:12:35 +0100
committerArthur LAURENT <[email protected]>2022-12-13 23:09:02 +0100
commit5dce8f69e3c7b3130bafb631c67529f4c0474955 (patch)
tree2ec563985a1f553adf2d6f5d1b12ddcbf523a7b5
parentf314e4eb068e04e4b311feffffaf427ea25ef9bd (diff)
enable arm64 std ifc modules support
-rw-r--r--tests/projects/c++/modules/test_msvc.lua2
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/projects/c++/modules/test_msvc.lua b/tests/projects/c++/modules/test_msvc.lua
index 1cdb4228d..6295a3ed7 100644
--- a/tests/projects/c++/modules/test_msvc.lua
+++ b/tests/projects/c++/modules/test_msvc.lua
@@ -23,7 +23,7 @@ function stdimport_support()
if msvc and msvc:check() then
local vcvars = msvc:config("vcvars")
if vcvars and vcvars.VCInstallDir and vcvars.VCToolsVersion then
- stdifcdir = path.join(vcvars.VCInstallDir, "Tools", "MSVC", vcvars.VCToolsVersion, "modules")
+ stdmodulesdir = path.join(vcvars.VCInstallDir, "Tools", "MSVC", vcvars.VCToolsVersion, "modules")
end
end
return os.isdir(stdmodulesdir or "")
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 31b65b154..017047f9f 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -155,6 +155,8 @@ function load(target)
arch = "x64"
elseif target:is_arch("x86", "i386") then
arch = "x86"
+ elseif target:is_arch("arm64") then
+ arch = "arm64"
end
if arch then
local mode = is_mode("release") and "Release" or "Debug"