mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:54:13 +08:00
mdbx-cmake: drop openmp detection and flags.
Change-Id: Iead999c356f683df36183df729dbc0a94e32c420
This commit is contained in:
parent
60a6560a3b
commit
8a6de15346
@ -214,14 +214,6 @@ else()
|
|||||||
check_compiler_flag("-Ominimal" CC_HAS_OMINIMAL)
|
check_compiler_flag("-Ominimal" CC_HAS_OMINIMAL)
|
||||||
check_compiler_flag("-ffunction-sections -fdata-sections" CC_HAS_SECTIONS)
|
check_compiler_flag("-ffunction-sections -fdata-sections" CC_HAS_SECTIONS)
|
||||||
check_compiler_flag("-ffast-math" CC_HAS_FASTMATH)
|
check_compiler_flag("-ffast-math" CC_HAS_FASTMATH)
|
||||||
|
|
||||||
# Check for an omp support
|
|
||||||
set(CMAKE_REQUIRED_FLAGS "-fopenmp -Werror")
|
|
||||||
check_cxx_source_compiles("int main(void) {
|
|
||||||
#pragma omp parallel
|
|
||||||
return 0;
|
|
||||||
}" HAVE_OPENMP)
|
|
||||||
set(CMAKE_REQUIRED_FLAGS "")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check for LTO support by GCC
|
# Check for LTO support by GCC
|
||||||
@ -534,10 +526,6 @@ macro(setup_compile_flags)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_OPENMP)
|
|
||||||
add_compile_flags("C;CXX" "-fopenmp")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ENABLE_ASAN)
|
if (ENABLE_ASAN)
|
||||||
add_compile_flags("C;CXX" -fsanitize=address)
|
add_compile_flags("C;CXX" -fsanitize=address)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user