makepanda: build on Intel Android machines

This commit is contained in:
rdb 2018-02-10 12:13:05 +01:00
parent bdb74b1e30
commit 730279531a
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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"