1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

meson: Only enable b_lto for nixexpr-parser when b_lto is enabled globally

This commit is contained in:
Sergei Zimmerman 2025-10-23 01:49:31 +03:00
parent 5390bba920
commit 350d602832
No known key found for this signature in database

View file

@ -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'),
],
)