Commit f0e4df79 authored by Raito Bezarius's avatar Raito Bezarius Committed by github-actions[bot]
Browse files

lix: build in release mode with link time optimizations



This makes the binary size further reduced and may improve (?)
performance.

Signed-off-by: default avatarRaito Bezarius <masterancpp@gmail.com>
(cherry picked from commit 84419e5c)
parent fafeae3d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)