diff --git a/test/std/testAndroid.hxml b/test/std/testAndroid.hxml
index 7e7e1d0b6..cc427faf2 100644
--- a/test/std/testAndroid.hxml
+++ b/test/std/testAndroid.hxml
@@ -3,7 +3,8 @@
-D exe_link
-L hx4compat
-L utest
---cmd adb push arm32/Test /storage/ext_sd
---cmd adb push Test.hx /storage/ext_sd
---cmd adb shell "cd /storage/ext_sd && ./Test"
---cpp arm32
\ No newline at end of file
+--cpp arm64
+--cmd adb push arm64/Test-64 /data/local/tmp
+--cmd adb push Test.hx /data/local/tmp
+--cmd adb shell "cd /data/local/tmp && ./Test-64"
+--cmd adb shell "rm /data/local/tmp/Test{-64,.hx}"
diff --git a/toolchain/android-toolchain-clang.xml b/toolchain/android-toolchain-clang.xml
index 1858b255d..6eb8bd559 100644
--- a/toolchain/android-toolchain-clang.xml
+++ b/toolchain/android-toolchain-clang.xml
@@ -106,7 +106,25 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/tools/hxcpp/BuildTool.hx b/tools/hxcpp/BuildTool.hx
index 3be73b5c9..5c88eeb96 100644
--- a/tools/hxcpp/BuildTool.hx
+++ b/tools/hxcpp/BuildTool.hx
@@ -148,6 +148,10 @@ class BuildTool
m32 = arch=="x86";
arm64 = arch=="arm64";
}
+ else if (mDefines.exists("android"))
+ {
+ arm64 = true;
+ }
else
{
var hostArch = getArch();