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
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ if(EXISTS "/.dockerenv")
endif()
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(VORTEX_CARGO_PROFILE PROFILE release-lto)
endif()

corrosion_import_crate(
MANIFEST_PATH vortex-extension/Cargo.toml
CRATES vortex-extension
CRATE_TYPES ${VORTEX_LIB_TYPE}
FLAGS --crate-type=${VORTEX_LIB_TYPE}
${VORTEX_CARGO_PROFILE}
)

# Forward the DuckDB version passed via CMake as an env var.
Expand Down
5 changes: 5 additions & 0 deletions vortex-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ vortex-duckdb = { git = "https://github.com/vortex-data/vortex.git", rev = "7654
# This improved build times significantly
[profile.dev.package.vortex-fastlanes]
debug = false

[profile.release-lto]
inherits = "release"
lto = "fat"
codegen-units = 1
Loading