Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/clang_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def get_native_triple():

arch = {
'aarch64': 'arm64',
'arm64': 'arm64',
'arm64': 'arm64', # Python on Apple Silicon ARM64 reports lowercase arm64
'ARM64': 'arm64', # Python on Windows-on-ARM reports uppercase ARM64
'x86_64': 'x86_64',
'AMD64': 'x86_64',
}[platform.machine()]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about platform.machine().lower() here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considered it, but I'd rather see more cases of this from Python before going there.

Expand Down