Skip to content

Commit

Permalink
wscript: disable large file for 32-bit Android
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Feb 23, 2025
1 parent ccf342f commit a060d7a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a060d7a

Please sign in to comment.