Skip to content

Commit

Permalink
build: use gnueabihf for armv7l and armv6l (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed May 14, 2024
1 parent 1852d52 commit 4aa0c9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def detect_arch():
with open(Path(__file__).parent.parent / "libs.json") as f:
archs = json.loads(f.read())

uname = platform.uname()
glibc_flavor = "gnueabihf" if uname.machine in ["armv7l", "armv6l"] else "gnu"

libc, _ = platform.libc_ver()
# https://github.com/python/cpython/issues/87414
libc = "gnu" if libc == "glibc" else "musl"
uname = platform.uname()
libc = glibc_flavor if libc == "glibc" else "musl"
pointer_size = struct.calcsize("P") * 8

for arch in archs:
Expand Down

0 comments on commit 4aa0c9f

Please sign in to comment.