Skip to content

Commit 47d5e8e

Browse files
committed
fix: Disable LTO for now as it breaks linux builds
1 parent a1c65b8 commit 47d5e8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ fn main() {
1313
let dst = cmake::Config::new("valhalla")
1414
.define("CMAKE_BUILD_TYPE", build_type)
1515
.define("CMAKE_EXPORT_COMPILE_COMMANDS", "ON") // Required to extract include paths
16-
// Enable link-time optimization only in Release configuration to have reasonable compile times in Debug
17-
.define(
18-
"CMAKE_INTERPROCEDURAL_OPTIMIZATION",
19-
if build_type == "Release" { "ON" } else { "OFF" },
20-
)
16+
// // Enable link-time optimization only in Release configuration to have reasonable compile times in Debug
17+
// .define(
18+
// "CMAKE_INTERPROCEDURAL_OPTIMIZATION",
19+
// if build_type == "Release" { "ON" } else { "OFF" },
20+
// )
2121
// Disable everything we don't need to reduce number of system dependencies and speed up compilation
2222
.define("ENABLE_TOOLS", "OFF")
2323
.define("ENABLE_DATA_TOOLS", "OFF")

0 commit comments

Comments
 (0)