gen_msvs_vcxproj: add ARM64EC w/VS >= 2022
authorJames Zern <jzern@google.com>
Sat, 6 May 2023 02:00:08 +0000 (19:00 -0700)
committerJames Zern <jzern@google.com>
Mon, 8 May 2023 17:53:21 +0000 (10:53 -0700)
rather than define new targets, add a platform to the arm64 list as they
share the same configuration.

Bug: webm:1788
Change-Id: Iac020280b1103fb12b559f21439aeff26568fba4

build/make/gen_msvs_vcxproj.sh

index 482d88f..1e1db05 100755 (executable)
@@ -269,6 +269,10 @@ case "$target" in
     ;;
     arm64*)
         platforms[0]="ARM64"
+        # As of Visual Studio 2022 17.5.5, clang-cl does not support ARM64EC.
+        if [ "$vs_ver" -ge 17 -a "$platform_toolset" != "ClangCl" ]; then
+            platforms[1]="ARM64EC"
+        fi
         asm_Debug_cmdline="armasm64 -nologo -oldit &quot;%(FullPath)&quot;"
         asm_Release_cmdline="armasm64 -nologo -oldit &quot;%(FullPath)&quot;"
     ;;