Merge pull request #106 from devnexen/atomic_swap_16_build_fix

atomic swap 16 flag missing fix.
This commit is contained in:
Matthew Parkinson
2019-11-28 10:28:46 +00:00
committed by GitHub

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?