Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | if(ENABLE_GLIBC_BACK_COMPAT) | ||||
add_linker_flags(-Wl,--wrap=log2f) | add_linker_flags(-Wl,--wrap=log2f) | ||||
if(NOT HAVE_LARGE_FILE_SUPPORT) | if(NOT HAVE_LARGE_FILE_SUPPORT) | ||||
add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
if(USE_JEMALLOC_EXPERIMENTAL) | if(USE_JEMALLOC_EXPERIMENTAL) | ||||
# Most of the sanitizers require their instrumented allocation functions to | |||||
# be fully functional. This is obviously the case for all the memory related | |||||
# sanitizers (asan, lsan, msan) but not only. | |||||
if(ENABLE_SANITIZERS) | |||||
message(WARNING "Jemalloc is incompatible with the sanitizers and has been disabled.") | |||||
else() | |||||
find_package(Jemalloc REQUIRED) | find_package(Jemalloc REQUIRED) | ||||
link_libraries(Jemalloc::jemalloc) | link_libraries(Jemalloc::jemalloc) | ||||
endif() | endif() | ||||
endif() | |||||
# Make sure that all the global compiler and linker flags are set BEFORE | # Make sure that all the global compiler and linker flags are set BEFORE | ||||
# including the libraries so they apply as needed. | # including the libraries so they apply as needed. | ||||
# libraries | # libraries | ||||
add_subdirectory(crypto) | add_subdirectory(crypto) | ||||
▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines |