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 ()

View File

@@ -28,7 +28,7 @@ namespace snmalloc
*/
IntegerPointers = (1 << 0),
/**
* This architecture cannot access cpu cycles counters from userspace
* This architecture cannot access cpu cycles counters.
*/
NoCpuCycleCounters = (1 << 1),
};

View File

@@ -1,7 +1,7 @@
#pragma once
#include <limits>
#include <cstddef>
#include <limits>
// #define USE_LZCNT

View File

@@ -3,8 +3,8 @@
#include "../ds/address.h"
#include "../mem/allocconfig.h"
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
extern "C" int puts(const char* str);