build: only build x86 cpuid on support architectures
This commit is contained in:
parent
85e9dba38c
commit
bb7be903b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user