diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-01-04 14:43:34 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-01-07 12:33:47 +0100 |
commit | 3f5e39e960921167421317e2cdf6a37ae1330352 (patch) | |
tree | aeebe0e7375b14e1d3b5aebd2902aa7698c03615 /package/libs/ustream-ssl | |
parent | 8a57531855bd13d5930d74abd8d708be3a14b887 (diff) | |
download | upstream-3f5e39e960921167421317e2cdf6a37ae1330352.tar.gz upstream-3f5e39e960921167421317e2cdf6a37ae1330352.tar.bz2 upstream-3f5e39e960921167421317e2cdf6a37ae1330352.zip |
zlib: only enable NEON optimizations on eligible targets
Instead of inferring the availability of NEON support from the target
optimization flags, use a preprocessor test to decide whether to enable
ARMv8 NEON optimizations.
Fixes the following build error spotted by the mediatek/32 buildbot:
[ 26%] Building C object CMakeFiles/zlib.dir/contrib/arm/inflate.o
In file included from .../zlib-1.2.11/contrib/arm/chunkcopy.h:10:0,
from .../zlib-1.2.11/contrib/arm/inflate.c:87:
.../arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
^
In file included from .../zlib-1.2.11/contrib/arm/inflate.c:87:0:
.../zlib-1.2.11/contrib/arm/chunkcopy.h:18:9: error: unknown type name 'uint8x16_t'
typedef uint8x16_t chunkcopy_chunk_t;
^
[...]
CMakeFiles/zlib.dir/build.make:302: recipe for target 'CMakeFiles/zlib.dir/contrib/arm/inflate.o' failed
Fixes: 3acecba520 "package/libs/zlib: Add ARM and NEON optimizations"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/libs/ustream-ssl')
0 files changed, 0 insertions, 0 deletions