Skip to content

Commit

Permalink
Set DDB to use release builds irrespective of build type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpai committed Mar 26, 2024
1 parent 3fbb475 commit 4137b98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMake/resolve_dependency_modules/duckdb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ set(ENABLE_SANITIZER OFF)
set(ENABLE_UBSAN OFF)
set(BUILD_SHELL OFF)
set(EXPORT_DLL_SYMBOLS OFF)
set(PREVIOUS_BUILD_TYPE ${CMAKE_BUILD_TYPE})
set(CMAKE_BUILD_TYPE Release)

FetchContent_MakeAvailable(duckdb)

if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
target_compile_options(duckdb_catalog PRIVATE -Wno-nonnull-compare)
endif()

set(CMAKE_BUILD_TYPE ${PREVIOUS_BUILD_TYPE})

0 comments on commit 4137b98

Please sign in to comment.