Skip to content

Commit 7486c5c

Browse files
authored
Fix get_native_triple() on Windows-on-ARM devices. (#25283)
Fixes ``` other.test_bad_triple other.test_dot_a_all_contents_invalid other.test_native_link_error_message ``` on Windows-on-ARM.
1 parent d778f49 commit 7486c5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/clang_native.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def get_native_triple():
2525

2626
arch = {
2727
'aarch64': 'arm64',
28-
'arm64': 'arm64',
28+
'arm64': 'arm64', # Python on Apple Silicon ARM64 reports lowercase arm64
29+
'ARM64': 'arm64', # Python on Windows-on-ARM reports uppercase ARM64
2930
'x86_64': 'x86_64',
3031
'AMD64': 'x86_64',
3132
}[platform.machine()]

0 commit comments

Comments
 (0)