summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorMalcolm Smith <smith@chaquo.com>2024-03-21 23:52:29 (GMT)
committerGitHub <noreply@github.com>2024-03-21 23:52:29 (GMT)
commit3ec57307e70ee6f42410e844d3399bbd598917ba (patch)
tree6a8a4241ab77eb831818110235cd67d6f1263bf1 /Include/cpython
parent50f9b0b1e0fb181875751cef951351ed007b6397 (diff)
downloadcpython-3ec57307e70ee6f42410e844d3399bbd598917ba.zip
cpython-3ec57307e70ee6f42410e844d3399bbd598917ba.tar.gz
cpython-3ec57307e70ee6f42410e844d3399bbd598917ba.tar.bz2
gh-71052: Add Android build script and instructions (#116426)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/pystate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index 38d0897..f1540fd 100644
--- a/Include/cpython/pystate.h
+++ b/Include/cpython/pystate.h
@@ -211,6 +211,10 @@ struct _ts {
# define Py_C_RECURSION_LIMIT 800
#elif defined(_WIN32)
# define Py_C_RECURSION_LIMIT 3000
+#elif defined(__ANDROID__)
+ // On an ARM64 emulator, API level 34 was OK with 10000, but API level 21
+ // crashed in test_compiler_recursion_limit.
+# define Py_C_RECURSION_LIMIT 3000
#elif defined(_Py_ADDRESS_SANITIZER)
# define Py_C_RECURSION_LIMIT 4000
#else