LLVM  16.0.0git
Functions | Variables
lib/Testing/Support/CMakeLists.txt File Reference

Functions

 include (GetLibraryName) check_cxx_compiler_flag("-Werror
 
int main ()
 
LLVM_HAS_NOGLOBAL_CTOR_MUTEX if (NOT LLVM_HAS_NOGLOBAL_CTOR_MUTEX) string(REPLACE "-Werror
 
LLVM_HAS_NOGLOBAL_CTOR_MUTEX snmalloc and mimalloc are supported endif () if(LLVM_INTEGRATED_CRT_ALLOC MATCHES "rpmalloc$") add_definitions(-DENABLE_OVERRIDE -DENABLE_PRELOAD) set(ALLOCATOR_FILES "$
 
rpmalloc rpmalloc c elseif (LLVM_INTEGRATED_CRT_ALLOC MATCHES "snmalloc$") set(ALLOCATOR_FILES "$
 
src snmalloc override new cc set (system_libs ${system_libs} "mincore.lib" "-INCLUDE:malloc") elseif(LLVM_INTEGRATED_CRT_ALLOC MATCHES "mimalloc$") set(MIMALLOC_LIB "$
 
out msvc x64 Release mimalloc static lib if (NOT EXISTS "${MIMALLOC_LIB}") message(FATAL_ERROR "Cannot find the mimalloc static library. To build it
 
 set (EXCLUDE_FROM_ALL ON) add_llvm_library(LLVMTestingSupport Annotations.cpp Error.cpp SupportHelpers.cpp BUILDTREE_ONLY ADDITIONAL_HEADER_DIRS $
 
llvm Testing Support LINK_COMPONENTS Support target_link_libraries (LLVMTestingSupport PRIVATE llvm_gtest) if(HOST_WINNT AND "$
 

Variables

static std::recursive_mutex TestGlobalCtorDtor2
 
LLVM_HAS_NOGLOBAL_CTOR_MUTEX rpmalloc
 

Function Documentation

◆ elseif()

rpmalloc rpmalloc c elseif ( LLVM_INTEGRATED_CRT_ALLOC MATCHES "snmalloc$"  )

Definition at line 105 of file CMakeLists.txt.

◆ endif()

LLVM_HAS_NOGLOBAL_CTOR_MUTEX snmalloc and mimalloc are supported endif ( )

Definition at line 100 of file CMakeLists.txt.

◆ if() [1/2]

out msvc x64 Release mimalloc static lib if ( NOT EXISTS "${MIMALLOC_LIB}"  )

◆ if() [2/2]

LLVM_HAS_NOGLOBAL_CTOR_MUTEX if ( NOT  LLVM_HAS_NOGLOBAL_CTOR_MUTEX)

◆ include()

include ( GetLibraryName  )

◆ main()

int main ( )

Definition at line 17 of file CMakeLists.txt.

◆ set() [1/2]

set ( EXCLUDE_FROM_ALL  ON)

Definition at line 3 of file CMakeLists.txt.

◆ set() [2/2]

src snmalloc override new cc set ( system_libs ${system_libs} "mincore.lib" "-INCLUDE:malloc"  )

Definition at line 107 of file CMakeLists.txt.

◆ target_link_libraries()

llvm Testing Support LINK_COMPONENTS Support target_link_libraries ( LLVMTestingSupport PRIVATE  llvm_gtest)

Definition at line 19 of file CMakeLists.txt.

Variable Documentation

◆ rpmalloc

LLVM_HAS_NOGLOBAL_CTOR_MUTEX rpmalloc

Definition at line 99 of file CMakeLists.txt.

◆ TestGlobalCtorDtor2

std::recursive_mutex TestGlobalCtorDtor2
static

Definition at line 16 of file CMakeLists.txt.