Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions vortex-duckdb/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,14 @@ fn c2rust(crate_dir: &Path, duckdb_include_dir: &Path) {
fn cpp(duckdb_include_dir: &Path) {
cc::Build::new()
.std("c++20")
// Duckdb sources fail -Wno-unused-parameter
.flags(["-Wall", "-Wextra", "-Wpedantic", "-Wno-unused-parameter"])
// Duckdb sources fail -Wno-unused-parameter and -Wno-type-limits
.flags([
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wno-unused-parameter",
"-Wno-type-limits",
])
.cpp(true)
.include(duckdb_include_dir)
.include("cpp/include")
Expand Down
2 changes: 1 addition & 1 deletion vortex-duckdb/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (NOT CMAKE_BUILD_TYPE)
endif()

# Enable compiler warnings (matching build.rs flags).
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wno-type-limits")

# Find DuckDB include directory via the symlink created by build.rs.
# The symlink points to target/duckdb-source-vX.Y.Z which contains duckdb-X.Y.Z/
Expand Down
Loading