Skip to content

Commit

Permalink
Merge pull request #11 from chickenandpork/fix-arm-detection
Browse files Browse the repository at this point in the history
check 'machine()' for both amd64 and arm64
  • Loading branch information
Warchant authored Jan 17, 2025
2 parents 7e82039 + 9be686b commit 030f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pre_commit_buildifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_processor():
if platform.machine().lower() in ["amd64", "x86_64"]:
return "amd64"

if platform.processor().lower() in ["arm64", "aarch64"]:
if platform.machine().lower() in ["arm64", "aarch64"]:
return "arm64"

raise NotImplementedError(f"Target CPU/OS is not supported: {platform.machine()}")
Expand Down

0 comments on commit 030f5c8

Please sign in to comment.