build: only build x86 cpuid on support architectures

This commit is contained in:
Danny Robson 2019-02-02 15:49:50 +11:00
parent 85e9dba38c
commit bb7be903b1

View File

@ -188,6 +188,16 @@ else ()
endif ()
if (host_cpu STREQUAL "x86_64")
list (APPEND UTIL_FILES
cpuid_x86.cpp
cpuid_x86.hpp
)
else ()
message (FATAL_ERROR "Unknown architecture ${host_cpu}")
endif ()
###############################################################################
# Common files
list (
@ -254,8 +264,6 @@ list (
cpp.hpp
cpuid.cpp
cpuid.hpp
cpuid_x86.cpp
cpuid_x86.hpp
debug.cpp
debug.hpp
encode/number.hpp