Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16ac5e1

Browse filesBrowse 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 <luigipinca@gmail.com> Fixes: #49766 PR-URL: #49828 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 1b96975 commit 16ac5e1
Copy full SHA for 16ac5e1

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎android_configure.py‎

Copy file name to clipboardExpand all lines: android_configure.py
+1Lines changed: 1 addition & 0 deletions
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"):
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.