Skip to content

Commit f564ed4

Browse files
MatteoBaxlpinca
authored andcommitted
zlib: fix discovery of cpu-features.h for android
Fixed cpu-features.h not found issue. Co-Authored-By: Luigi Pinca <[email protected]> Fixes: #49766 PR-URL: #49828 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent d9eda67 commit f564ed4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

android_configure.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def patch_android():
7070
GYP_DEFINES += " v8_target_arch=" + arch
7171
GYP_DEFINES += " android_target_arch=" + arch
7272
GYP_DEFINES += " host_os=" + host_os + " OS=android"
73+
GYP_DEFINES += " android_ndk_path=" + android_ndk_path
7374
os.environ['GYP_DEFINES'] = GYP_DEFINES
7475

7576
if os.path.exists("./configure"):

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
],
231231
},],
232232
['OS == "android"', {
233-
'cflags': [ '-fPIC' ],
233+
'cflags': [ '-fPIC', '-I<(android_ndk_path)/sources/android/cpufeatures' ],
234234
'ldflags': [ '-fPIC' ]
235235
}],
236236
],

0 commit comments

Comments
 (0)