Skip to content

Commit

Permalink
Properly translate ppc64le (#105)
Browse files Browse the repository at this point in the history
Properly translate ppc64le architecture to the '@platforms//cpu:ppc64le'
constraint value when detected on the host.

Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
  • Loading branch information
Jenkins-J authored Jan 8, 2025
1 parent d5fcb55 commit 6aa319f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion host/extension.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ def _translate_cpu(arch):
return "x86_32"
if arch in ["amd64", "x86_64", "x64"]:
return "x86_64"
if arch in ["ppc", "ppc64", "ppc64le"]:
if arch in ["ppc", "ppc64"]:
return "ppc"
if arch in ["ppc64le"]:
return "ppc64le"
if arch in ["arm", "armv7l"]:
return "arm"
if arch in ["aarch64"]:
Expand Down

0 comments on commit 6aa319f

Please sign in to comment.