atomic swap 16 flag missing fix.

In some platforms, it is rather amd64 than the more common x86_64,
thus missing to rightfully set this flag.
This commit is contained in:
David Carlier
2019-11-28 09:30:43 +00:00
parent 7f465f9a5d
commit 9da3261a22

View File

@@ -74,6 +74,8 @@ if(NOT MSVC)
endif()
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
target_compile_options(snmalloc_lib INTERFACE -mcx16)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64")
target_compile_options(snmalloc_lib INTERFACE -mcx16)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
target_compile_options(snmalloc_lib INTERFACE -mcx16)
# XXX elseif ARM?