diff --git a/deps/zlib/android-cpu-features.c b/deps/zlib/android-cpu-features.c new file mode 100644 index 000000000000..a70bfafa2a0a --- /dev/null +++ b/deps/zlib/android-cpu-features.c @@ -0,0 +1,2 @@ +// Build the Android NDK CPU feature implementation as part of zlib. +#include diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp index 12449e7b0294..6786aeb62510 100644 --- a/deps/zlib/zlib.gyp +++ b/deps/zlib/zlib.gyp @@ -201,6 +201,11 @@ 'USE_FILE32API' ], }], + ['OS=="android"', { + 'sources': [ + '<(ZLIB_ROOT)/android-cpu-features.c', + ], + }], # Incorporate optimizations where possible. ['(target_arch in "ia32 x64" and OS!="ios") or arm_fpu=="neon"', { 'dependencies': [ 'zlib_data_chunk_simd' ],