Skip to content

Commit 8a4bc6c

Browse files
committed
turn lto off
Signed-off-by: Alexander Droste <[email protected]>
1 parent 93a788c commit 8a4bc6c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ use_debug = "deny"
276276

277277
[profile.release]
278278
codegen-units = 1
279-
# Perform optimizations across all crates within the dependency graph.
280-
lto = "thin"
279+
# Turn LTO off, as it breaks when vortex-duckdb-ext is linked.
280+
lto = "off"
281281

282282
[profile.release_debug]
283283
debug = "full"

vortex-duckdb-ext/build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ fn main() {
110110
let zip_path = download_duckdb_archive().unwrap();
111111
let lib_path = extract_duckdb_libraries(zip_path).unwrap();
112112

113-
// Turn off arch native.
114-
println!("cargo:rustc-flag=-Ctarget-cpu=generic");
115-
116113
// Link against DuckDB dylib.
117114
println!("cargo:rustc-link-search=native={}", lib_path.display());
118115
println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lib_path.display());

0 commit comments

Comments
 (0)