Only default IMAGE_SUPPORT=ON for x86

Image support does not compile on other archectures, since it relies on
the x86 only header "x86intrin.h".

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Change-Id: I120d15870e74e20bd618e6f5da8c05e28fb1203b
Ta zmiana jest zawarta w:
Jeremy Newton authored and Kent Russell committed 2022-04-12 09:24:45 -04:00
1 rodzic 9265409f08
złożenie a0931f4a3c
Plik 1 zmieniony
+2 -2
+2 -2
Wyświetl plik
@@ -191,10 +191,10 @@ set ( SRCS core/util/lnx/os_linux.cpp
target_sources( ${CORE_RUNTIME_TARGET} PRIVATE ${SRCS} )
if ( NOT DEFINED IMAGE_SUPPORT )
if ( NOT DEFINED IMAGE_SUPPORT AND CMAKE_SYSTEM_PROCESSOR MATCHES "i?86|x86_64|amd64|AMD64" )
set ( IMAGE_SUPPORT ON )
endif()
set ( IMAGE_SUPPORT ${IMAGE_SUPPORT} CACHE BOOL "Build with image support (default: ON)." )
set ( IMAGE_SUPPORT ${IMAGE_SUPPORT} CACHE BOOL "Build with image support (default: ON for x86, OFF elsewise)." )
## Optional image module defintions.
if(${IMAGE_SUPPORT})