We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 087dd1d commit 53fc11cCopy full SHA for 53fc11c
1 file changed
cmake/duckdb_loader.cmake
@@ -115,15 +115,19 @@ function(_duckdb_validate_jemalloc_config)
115
endif()
116
117
# jemalloc is only allowed in linux and osx debug builds
118
- set(supported_os
119
- CMAKE_SYSTEM_NAME
120
- STREQUAL
121
- "Darwin"
122
- OR
123
124
125
- "Linux")
126
- set(jemalloc_allowed CMAKE_BUILD_TYPE STREQUAL "Debug" AND supported_os)
+ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ set(supported_os TRUE)
+ else()
+ set(supported_os FALSE)
+ endif()
+
+ # jemalloc is only allowed in debug builds
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND supported_os)
+ set(jemalloc_allowed TRUE)
127
128
+ set(jemalloc_allowed FALSE)
129
130
131
if(NOT jemalloc_allowed)
132
message(
133
WARNING
0 commit comments