From 350d60283281a0dba5c3aa4753983754de74ecc9 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Thu, 23 Oct 2025 01:49:31 +0300 Subject: [PATCH] meson: Only enable b_lto for nixexpr-parser when b_lto is enabled globally --- src/libexpr/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/meson.build b/src/libexpr/meson.build index e40d27722..18c4c7fa3 100644 --- a/src/libexpr/meson.build +++ b/src/libexpr/meson.build @@ -223,7 +223,7 @@ parser_library = static_library( # by plonking down GIMPLE in the archive. override_options : [ 'b_ndebug=@0@'.format(not get_option('debug')), - 'b_lto=@0@'.format(cxx.get_id() != 'gcc'), + 'b_lto=@0@'.format(get_option('b_lto') and cxx.get_id() != 'gcc'), ], )