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:
Raito Bezarius 2024-05-23 21:36:30 +02:00
parent 7881030b88
commit 84419e5c37

View File

@ -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)