Fix update_deps.py script to handle Windows Arm64.
authorAlex Rønne Petersen <alex@alexrp.com>
Sun, 14 Apr 2024 03:08:48 +0000 (05:08 +0200)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Mon, 15 Apr 2024 21:23:28 +0000 (15:23 -0600)
scripts/update_deps.py

index 35b4990d5f19e8b866f8ce8d7696cb87f0408b91..988d458e33e94012fb1c82ced314bc8cb5729a1c 100755 (executable)
@@ -503,11 +503,12 @@ class GoodRepo(object):
         # Use the CMake -A option to select the platform architecture
         # without needing a Visual Studio generator.
         if platform.system() == 'Windows' and self._args.generator != "Ninja":
+            cmake_cmd.append('-A')
             if self._args.arch.lower() == '64' or self._args.arch == 'x64' or self._args.arch == 'win64':
-                cmake_cmd.append('-A')
                 cmake_cmd.append('x64')
+            elif self._args.arch == 'arm64':
+                cmake_cmd.append('arm64')
             else:
-                cmake_cmd.append('-A')
                 cmake_cmd.append('Win32')
 
         # Apply a generator, if one is specified.  This can be used to supply
@@ -683,7 +684,7 @@ def main():
     parser.add_argument(
         '--arch',
         dest='arch',
-        choices=['32', '64', 'x86', 'x64', 'win32', 'win64'],
+        choices=['32', '64', 'x86', 'x64', 'win32', 'win64', 'arm64'],
         type=str.lower,
         help="Set build files architecture (Visual Studio Generator Only)",
         default='64')