mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 20:53:22 +00:00
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 <masterancpp@gmail.com>
This commit is contained in:
parent
7881030b88
commit
84419e5c37
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user