From 9da3261a223d64c13a9cbe4c22d902818611f290 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 28 Nov 2019 09:30:43 +0000 Subject: [PATCH] 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdc15e6..77769e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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?