[vlc-commits] [Git][videolan/vlc][master] contrib: png: Don't require runtime checks for NEON on arm on win32

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Oct 13 10:54:57 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a4240eed by Martin Storsjö at 2022-10-13T10:01:11+00:00
contrib: png: Don't require runtime checks for NEON on arm on win32

NEON is always available there, just like on iOS.

This fixes building for Windows on ARM after switching to building
libpng with CMake - after that change, building failed due to
"No support for run-time ARM Neon checking; use compile-time options".

- - - - -


1 changed file:

- contrib/src/png/rules.mak


Changes:

=====================================
contrib/src/png/rules.mak
=====================================
@@ -29,10 +29,13 @@ PNG_CONF += -DCMAKE_ASM_FLAGS="$(CFLAGS)"
 endif
 endif
 
-ifdef HAVE_IOS
 ifeq ($(ARCH),arm)
+ifdef HAVE_IOS
 # otherwise detection fails
 PNG_CONF += -DPNG_ARM_NEON=on
+else ifdef HAVE_WIN32
+# No runtime detection needed
+PNG_CONF += -DPNG_ARM_NEON=on
 endif
 endif
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a4240eedabe5ef823d929d48449d36c64a71ada8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a4240eedabe5ef823d929d48449d36c64a71ada8
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list