Skip to content

Commit d89efcf

Browse files
committed
makepanda: fix recognition of armv7 android systems
1 parent 835aab5 commit d89efcf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

makepanda/makepandacore.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,12 @@ def GetHostArch():
321321
target = GetTarget()
322322
if target == 'windows':
323323
return 'x64' if host_64 else 'x86'
324-
else: #TODO
325-
return platform.machine()
324+
325+
machine = platform.machine()
326+
if machine.startswith('armv7'):
327+
return 'armv7a'
328+
else:
329+
return machine
326330

327331
def SetTarget(target, arch=None):
328332
"""Sets the target platform; the one we're compiling for. Also

0 commit comments

Comments
 (0)