1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #14331 from NixOS/debug-build-fix

meson: Only enable b_lto for nixexpr-parser when b_lto is enabled glo…
This commit is contained in:
John Ericson 2025-10-23 04:52:55 +00:00 committed by GitHub
commit d0217ec180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,7 @@ parser_library = static_library(
# by plonking down GIMPLE in the archive. # by plonking down GIMPLE in the archive.
override_options : [ override_options : [
'b_ndebug=@0@'.format(not get_option('debug')), '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'),
], ],
) )