Few build tweaks.
This commit is contained in:
@@ -94,8 +94,14 @@ if (WIN32)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
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)
|
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()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace snmalloc
|
|||||||
*/
|
*/
|
||||||
IntegerPointers = (1 << 0),
|
IntegerPointers = (1 << 0),
|
||||||
/**
|
/**
|
||||||
* This architecture cannot access cpu cycles counters from userspace
|
* This architecture cannot access cpu cycles counters.
|
||||||
*/
|
*/
|
||||||
NoCpuCycleCounters = (1 << 1),
|
NoCpuCycleCounters = (1 << 1),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
// #define USE_LZCNT
|
// #define USE_LZCNT
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
#include "../ds/address.h"
|
#include "../ds/address.h"
|
||||||
#include "../mem/allocconfig.h"
|
#include "../mem/allocconfig.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
extern "C" int puts(const char* str);
|
extern "C" int puts(const char* str);
|
||||||
|
|||||||
Reference in New Issue
Block a user