diff options
author | Martin Storsjö <martin@martin.st> | 2022-10-12 10:30:29 +0300 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2022-10-12 12:35:33 +0300 |
commit | e56f79c0c6d94f5d727fc147d4487038e188cdf2 (patch) | |
tree | d37e185dbd7ff8461f2a464714037e6ff65df39a /arm/arm_init.c | |
parent | 12222e6fbdc90523be77633ed430144cfee22772 (diff) | |
download | libpng-e56f79c0c6d94f5d727fc147d4487038e188cdf2.tar.gz |
cmake: Default to PNG_ARM_NEON=off for arm targets
This matches the configure script - unless the user has requested
anything, no hardware optimizations are autoenabled.
Defaulting to "check" is brittle (that configuration is deprecated
and poorly supported) - and for configurations where it would
make sense (where NEON isn't universally enabled in the compiler)
it didn't end up setting ARM_NEON_OPT to 1 in pnglibconf.h anyway.
This fixes default builds with cmake for iOS and Windows on armv7,
where NEON is universally available (but there's no runtime check
implemented) - but actually using NEON on this architecture
requires explicitly opting in to it when configuring, just like
with the configure script.
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
Diffstat (limited to 'arm/arm_init.c')
0 files changed, 0 insertions, 0 deletions