Skip to content

Commit 321b46e

Browse files
authored
feat: add support for ARM64EC with MSVC (#95)
2 parents 041af84 + 7710960 commit 321b46e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

make.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def parse_argv():
1818
target = parser.add_argument_group(title='Target')
1919
target.add_argument('-compiler', choices=['vs2015', 'vs2017', 'vs2019', 'vs2019-clang', 'vs2022', 'vs2022-clang', 'android', 'clang4', 'clang5', 'clang6', 'clang7', 'clang8', 'clang9', 'clang10', 'clang11', 'clang12', 'clang13', 'clang14', 'clang15', 'clang16', 'clang17', 'clang18', 'gcc4.8', 'gcc4.9', 'gcc5', 'gcc6', 'gcc7', 'gcc8', 'gcc9', 'gcc10', 'gcc11', 'gcc12', 'gcc13', 'osx', 'ios', 'emscripten'], help='Defaults to the host system\'s default compiler')
2020
target.add_argument('-config', choices=['Debug', 'Release'], type=str.capitalize)
21-
target.add_argument('-cpu', choices=['x86', 'x64', 'armv7', 'arm64', 'wasm'], help='Defaults to the host system\'s architecture')
21+
target.add_argument('-cpu', choices=['x86', 'x64', 'armv7', 'arm64', 'arm64ec', 'wasm'], help='Defaults to the host system\'s architecture')
2222
target.add_argument('-cpp_version', choices=['11', '14', '17', '20'], help='Defaults to C++11')
2323

2424
misc = parser.add_argument_group(title='Miscellaneous')
@@ -100,7 +100,11 @@ def parse_argv():
100100
is_arm_supported = True
101101

102102
if not is_arm_supported:
103-
print('arm64 is only supported with VS2017, VS2019, OS X (M1 processors), Linux, Android, and iOS')
103+
print('arm64 is only supported with VS2017, VS2019, VS2022, OS X (M* processors), Linux, Android, and iOS')
104+
sys.exit(1)
105+
elif args.cpu == 'arm64ec':
106+
if not args.compiler in ['vs2019', 'vs2022']:
107+
print('arm64ec is only supported with VS2019 and VS2022')
104108
sys.exit(1)
105109
elif args.cpu == 'armv7':
106110
if not args.compiler == 'android':

0 commit comments

Comments
 (0)