diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-04-14 05:08:48 +0200 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2024-04-15 16:28:23 -0600 |
| commit | 9fc3b7bfacb3fa5f4f18dd5aee77c07d53863a3a (patch) | |
| tree | d26f6c15695a02355917d257ceae35db06686c1d | |
| parent | d14404b26e17086a707ea6ff5f7342ed5b9938ca (diff) | |
| download | usermoji-9fc3b7bfacb3fa5f4f18dd5aee77c07d53863a3a.tar.xz | |
Fix update_deps.py script to handle Windows Arm64.
| -rwxr-xr-x | scripts/update_deps.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/update_deps.py b/scripts/update_deps.py index 8ac8b78e..d010f9b2 100755 --- a/scripts/update_deps.py +++ b/scripts/update_deps.py @@ -492,11 +492,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 @@ -677,7 +678,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') |
