From a060d7aefda24f3f1a9a5ca0821b4dc08d00d972 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 23 Feb 2025 16:07:28 +0300 Subject: [PATCH] wscript: disable large file for 32-bit Android --- wscript | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 970dd20f..61a75788 100644 --- a/wscript +++ b/wscript @@ -468,7 +468,16 @@ def configure(conf): # set _FILE_OFFSET_BITS=64 for filesystems with 64-bit inodes # must be set globally as it changes ABI - if conf.env.DEST_OS not in ['psvita']: + if conf.env.DEST_OS == 'android' and conf.env.DEST_SIZEOF_VOID_P == 4: + # Android in 32-bit mode don't have good enough large file support + # with our native API level + # https://android.googlesource.com/platform/bionic/+/HEAD/docs/32-bit-abi.md + pass + elif conf.env.DEST_OS == 'psvita': + # PSVita don't have large file support at all + pass + else: + # try to guess how to support large files conf.check_large_file(compiler = 'c', execute = False) # indicate if we are packaging for Linux/BSD