Few build tweaks.

This commit is contained in:
David Carlier
2020-03-17 11:18:24 +00:00
parent c6baa0baa3
commit 55f1237df9
4 changed files with 10 additions and 4 deletions

View File

@@ -94,8 +94,14 @@ if (WIN32)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
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 "AMD64")
target_compile_options(snmalloc_lib INTERFACE -mcx16)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
target_compile_options(snmalloc_lib INTERFACE -mcx16)
endif()
endif ()