Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4bed473

Browse files
livecodefraserlivecodeian
authored andcommitted
Ensure NEON instructions are enabled when building Skia
Without this, the NEON-specific optimisations will not compile.
1 parent 50df204 commit 4bed473

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

libskia/libskia.gyp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,20 @@
236236
'<@(opts_armv7_arm64_srcs)',
237237
'<@(opts_crc32_srcs)',
238238
],
239+
240+
'target_conditions':
241+
[
242+
[
243+
'toolset_os == "android" and toolset_arch == "armv7"',
244+
{
245+
'cflags':
246+
[
247+
# Needed in order to enable NEON instruction support
248+
'-mfpu=neon',
249+
],
250+
},
251+
],
252+
],
239253
},
240254
],
241255
[

0 commit comments

Comments
 (0)