mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
dep/xxhash: Set XXH_X86DISPATCH_ALLOW_AVX on x86/x64
This commit is contained in:
parent
5996945b37
commit
25847494d5
|
@ -6,6 +6,8 @@ set(SRCS
|
||||||
add_library(xxhash ${SRCS})
|
add_library(xxhash ${SRCS})
|
||||||
|
|
||||||
if(${CPU_ARCH} STREQUAL "x86" OR ${CPU_ARCH} STREQUAL "x64")
|
if(${CPU_ARCH} STREQUAL "x86" OR ${CPU_ARCH} STREQUAL "x64")
|
||||||
|
# Required if building with -mavx or -march=native, but you shouldn't be building with it.
|
||||||
|
target_compile_definitions(xxhash PRIVATE "XXH_X86DISPATCH_ALLOW_AVX")
|
||||||
target_sources(xxhash PRIVATE
|
target_sources(xxhash PRIVATE
|
||||||
include/xxh_x86dispatch.h
|
include/xxh_x86dispatch.h
|
||||||
src/xxh_x86dispatch.c
|
src/xxh_x86dispatch.c
|
||||||
|
|
Loading…
Reference in a new issue