Browse Source

makepanda: build on Intel Android machines

rdb 7 years ago
parent
commit
730279531a
2 changed files with 4 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolbase/dtool_platform.h
  2. 2 0
      makepanda/makepanda.py

+ 2 - 0
dtool/src/dtoolbase/dtool_platform.h

@@ -57,6 +57,8 @@
 #define DTOOL_PLATFORM "android_arm"
 #elif defined(__mips__)
 #define DTOOL_PLATFORM "android_mips"
+#elif defined(__x86_64)
+#define DTOOL_PLATFORM "android_amd64"
 #elif defined(__i386__)
 #define DTOOL_PLATFORM "android_i386"
 #endif

+ 2 - 0
makepanda/makepanda.py

@@ -1291,9 +1291,11 @@ def CompileCxx(obj,src,opts):
                 cmd += ' -fintegrated-as'
             elif arch == 'x86':
                 cmd += ' -target i686-none-linux-android'
+                cmd += ' -march=i686 -mtune=intel -mssse3 -mfpmath=sse -m32'
                 cmd += ' -mstackrealign'
             elif arch == 'x86_64':
                 cmd += ' -target x86_64-none-linux-android'
+                cmd += ' -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel'
 
             cmd += " -Wa,--noexecstack"