Add support for building on PPC64LE using x86 Intrinsic Compat Shim

This commit is contained in:
J Lynn
2018-12-17 05:33:16 +11:00
parent 6d8f2f4f93
commit 36a6629e6b
3 changed files with 16 additions and 2 deletions

View File

@@ -22,7 +22,12 @@ add_library(media-playback STATIC
${media-playback_SOURCES}
)
if(NOT MSVC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64le")
target_compile_options(media-playback
PUBLIC
-mvsx)
add_compile_definitions(NO_WARN_X86_INTRINSICS)
elseif(NOT MSVC)
target_compile_options(media-playback
PUBLIC
-mmmx