Skip to content
Snippets Groups Projects
Commit 424e8dae authored by Philippe Gorley's avatar Philippe Gorley Committed by Philippe Gorley
Browse files

vpx: enable runtime cpu detection


Older PCs may not support all instruction set extensions. If Ring was
built on a newer PC, this can cause a SIGILL crash when running on an
older PC.

Keep it disabled on Android and iOS, as they have no CPU detection
method available.

For example, the Core i5-2520M (Lenovo L520) does not support avx2.

Change-Id: I5bf6507ef174e18202fc6867772cd0a6be385388
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 3cc32192
No related branches found
No related tags found
No related merge requests found
...@@ -91,9 +91,15 @@ VPX_CONF := \ ...@@ -91,9 +91,15 @@ VPX_CONF := \
--disable-install-docs \ --disable-install-docs \
--enable-realtime-only \ --enable-realtime-only \
--enable-error-concealment \ --enable-error-concealment \
--disable-runtime-cpu-detect \
--disable-webm-io --disable-webm-io
ifdef HAVE_ANDROID
VPX_CONF += --disable-runtime-cpu-detect
endif
ifdef HAVE_IOS
VPX_CONF += --disable-runtime-cpu-detect
endif
ifdef HAVE_WIN32 ifdef HAVE_WIN32
VPX_CONF += --disable-ssse3 VPX_CONF += --disable-ssse3
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment