From 84419e5c378577c04e4ec3869c3afd1533432031 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 23 May 2024 21:36:30 +0200 Subject: [PATCH] lix: build in release mode with link time optimizations This makes the binary size further reduced and may improve (?) performance. Signed-off-by: Raito Bezarius --- pkgs/tools/package-management/lix/common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/package-management/lix/common.nix b/pkgs/tools/package-management/lix/common.nix index a544707b4f35..fe77830d56f1 100644 --- a/pkgs/tools/package-management/lix/common.nix +++ b/pkgs/tools/package-management/lix/common.nix @@ -182,8 +182,11 @@ let ''} ''; + mesonBuildType = "release"; mesonFlags = [ + # LTO optimization + (lib.mesonBool "b_lto" (!stdenv.isDarwin)) (lib.mesonEnable "gc" true) (lib.mesonBool "enable-tests" true) (lib.mesonBool "enable-docs" enableDocumentation)