Pārlūkot izejas kodu

makepanda: fix recognition of armv7 android systems

rdb 7 gadi atpakaļ
vecāks
revīzija
d89efcfda2
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      makepanda/makepandacore.py

+ 6 - 2
makepanda/makepandacore.py

@@ -321,8 +321,12 @@ def GetHostArch():
     target = GetTarget()
     if target == 'windows':
         return 'x64' if host_64 else 'x86'
-    else: #TODO
-        return platform.machine()
+
+    machine = platform.machine()
+    if machine.startswith('armv7'):
+        return 'armv7a'
+    else:
+        return machine
 
 def SetTarget(target, arch=None):
     """Sets the target platform; the one we're compiling for.  Also