From da94e860dd228a485018d2f9e8ae1f5d97ae005c Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 22 May 2025 13:13:31 +0200 Subject: [PATCH] build: disable LTO on Darwin Due to https://git.lix.systems/lix-project/lix/issues/832 , Lix 2.93.0 fails to build on Darwin without overrides. Until the root cause has been determined and fixed, build without LTO. Change-Id: I4db5eb294d8f19e5a366b1e19efa5a327b3e2e78 --- package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.nix b/package.nix index ee9a11cf3..3e7c5889b 100644 --- a/package.nix +++ b/package.nix @@ -264,6 +264,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonBool "werror" werror) ] ++ lib.optional (hostPlatform != buildPlatform) "--cross-file=${mesonCrossFile}" + # Temporary workaround for https://git.lix.systems/lix-project/lix/issues/832 + ++ lib.optional (hostPlatform.isDarwin) "-Db_lto=false" ++ sanitizeOpts; # We only include CMake so that Meson can locate toml11, which only ships CMake dependency metadata.