diff options
-rw-r--r-- | Android.bp | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -37,15 +37,14 @@ cc_defaults { "-Wno-pragma-pack", "-Werror", "-fPIC", + "-D_FILE_OFFSET_BITS=64", ], - target: { - darwin: { - cflags: [ - "-D_FILE_OFFSET_BITS=64", - "-Doff64_t=off_t", - ], - }, - }, + // This project requires _FILE_OFFSET_BITS=64, which isn't globally + // true for 32-bit Android builds. It's safe here because the libraries + // built by this build file aren't exported. If that changes, you'll + // need to come up with a plan (probably either upstreaming better 32-bit + // support, or waiting until we no longer support 32-bit either). + visibility: [":__subpackages__"], } cc_binary { |