mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-22 12:48:45 +00:00
Fix update_deps.py script to handle Windows Arm64.
This commit is contained in:
parent
72696f2782
commit
a78460f66b
1 changed files with 4 additions and 3 deletions
|
@ -492,11 +492,12 @@ class GoodRepo(object):
|
||||||
# Use the CMake -A option to select the platform architecture
|
# Use the CMake -A option to select the platform architecture
|
||||||
# without needing a Visual Studio generator.
|
# without needing a Visual Studio generator.
|
||||||
if platform.system() == 'Windows' and self._args.generator != "Ninja":
|
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':
|
if self._args.arch.lower() == '64' or self._args.arch == 'x64' or self._args.arch == 'win64':
|
||||||
cmake_cmd.append('-A')
|
|
||||||
cmake_cmd.append('x64')
|
cmake_cmd.append('x64')
|
||||||
|
elif self._args.arch == 'arm64':
|
||||||
|
cmake_cmd.append('arm64')
|
||||||
else:
|
else:
|
||||||
cmake_cmd.append('-A')
|
|
||||||
cmake_cmd.append('Win32')
|
cmake_cmd.append('Win32')
|
||||||
|
|
||||||
# Apply a generator, if one is specified. This can be used to supply
|
# Apply a generator, if one is specified. This can be used to supply
|
||||||
|
@ -677,7 +678,7 @@ def main():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--arch',
|
'--arch',
|
||||||
dest='arch',
|
dest='arch',
|
||||||
choices=['32', '64', 'x86', 'x64', 'win32', 'win64'],
|
choices=['32', '64', 'x86', 'x64', 'win32', 'win64', 'arm64'],
|
||||||
type=str.lower,
|
type=str.lower,
|
||||||
help="Set build files architecture (Visual Studio Generator Only)",
|
help="Set build files architecture (Visual Studio Generator Only)",
|
||||||
default='64')
|
default='64')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue