Merge pull request #14501 from LunaMoo/disableNEONforPNG

Disable NEON optimizations for libpng17 as a try to fix #14485
This commit is contained in:
Henrik Rydgård 2021-06-04 10:58:11 +02:00 committed by GitHub
commit 4a48f80638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,6 +272,7 @@ endforeach()
if(NOT MSVC)
if(ANDROID)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
add_definitions(-DPNG_ARM_NEON_OPT=0)
endif()
if(CLANG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-uninitialized")