Skip to content

Commit

Permalink
Fix architecture detection when running on native ARM64 windows (#14667)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 authored Sep 5, 2023
1 parent 21029be commit b9b65ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conans/client/conf/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ def _detected_architecture():
return "sparc"
elif "aarch64" in machine:
return "armv8"
elif "ARM64" in machine:
return "armv8"
elif "arm64" in machine:
return "armv8"
elif "64" in machine:
Expand Down
4 changes: 3 additions & 1 deletion conans/test/unittests/util/detected_architecture_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class DetectedArchitectureTest(unittest.TestCase):
['sparc64', 'sparcv9'],
['s390', 's390'],
['s390x', 's390x'],
['arm64', "armv8"]
['arm64', "armv8"],
['aarch64', 'armv8'],
['ARM64', 'armv8']
])
def test_various(self, mocked_machine, expected_arch):

Expand Down

0 comments on commit b9b65ac

Please sign in to comment.