From 5a7b71204db1d8a7fc91fffeeddc0887e35fdae6 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Fri, 28 Jun 2024 19:13:28 +0200 Subject: [PATCH] cmake: disable LTO by default --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dba76ea1..9995f4af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ option(BUILD_EXAMPLES "Build examples" OFF) # Enable extra optimization flags, like using -O3 even in RelWithDebInfo build. option(USE_EXTRA_OPTIMIZATION "Enable extra optimization" ON) # Enable link time optimization, slows down the build but produce faster and smaller binaries. -option(USE_LTO "Enable link-time optimization" ON) +option(USE_LTO "Enable link-time optimization" OFF) # Enabling fast math makes generated images less likely to be reproducible. # See https://github.com/DaemonEngine/crunch/issues/29 option(USE_FAST_MATH "Enable fast math (generated images are less likely to be reproducible)" ON)