MSVC: Added ARM64 target. (#412)

This commit is contained in:
Branimir Karadžić
2026-07-27 15:08:49 -07:00
committed by GitHub
parent 056ea3486c
commit 0b001f5f36
6 changed files with 33 additions and 16 deletions

View File

@@ -435,6 +435,9 @@ function toolchain(_buildDir, _libDir)
action.vstudio.windowsTargetPlatformMinVersion = windowsPlatform
end
-- Windows on ARM64 is a desktop target for MSVC.
platforms { "ARM64" }
if (_ACTION .. "-clang") == _OPTIONS["vs"] then
if "vs2017-clang" == _OPTIONS["vs"] then
premake.vstudio.toolset = "v141_clang_c2"
@@ -548,7 +551,7 @@ function toolchain(_buildDir, _libDir)
"-Wno-tautological-constant-compare",
}
configuration { "vs*", "not NX32", "not NX64" }
configuration { "vs*", "not ARM64", "not NX32", "not NX64" }
flags {
"EnableAVX",
}
@@ -592,6 +595,14 @@ function toolchain(_buildDir, _libDir)
path.join(_libDir, "lib/win64_" .. _ACTION),
}
configuration { "ARM64", "vs*" }
defines { "_WIN64" }
targetdir (path.join(_buildDir, "arm64_" .. _ACTION, "bin"))
objdir (path.join(_buildDir, "arm64_" .. _ACTION, "obj"))
libdirs {
path.join(_libDir, "lib/arm64_" .. _ACTION),
}
configuration { "x32", "vs2017" }
targetdir (path.join(_buildDir, "win32_" .. _ACTION, "bin"))
objdir (path.join(_buildDir, "win32_" .. _ACTION, "obj"))