Signed-off-by: Richard Henderson <[email protected]>
---
meson.build | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index 5fbdc75a0f..9a804dc810 100644
--- a/meson.build
+++ b/meson.build
@@ -3852,20 +3852,24 @@ subdir('system')
# without lto, not even the alias is required -- we simply use different
# declarations in different compilation units.
pagevary = files('page-vary-common.c')
+tinfoqom = files('target-info-qom.c')
if get_option('b_lto')
- pagevary_flags = ['-fno-lto']
+ nolto_flags = ['-fno-lto']
if get_option('cfi')
- pagevary_flags += '-fno-sanitize=cfi-icall'
+ nolto_flags += '-fno-sanitize=cfi-icall'
endif
pagevary = static_library('page-vary-common', sources: pagevary + genh,
- c_args: pagevary_flags)
+ c_args: nolto_flags)
pagevary = declare_dependency(link_with: pagevary)
+ tinfoqom = static_library('target-info-qom', sources: tinfoqom + genh,
+ c_args: nolto_flags)
+ tinfoqom = declare_dependency(link_with: tinfoqom)
endif
common_ss.add(pagevary)
system_ss.add(files('page-vary-system.c'))
common_ss.add(files('target-info.c'))
-system_ss.add(files('target-info-qom.c'))
+system_ss.add(tinfoqom)
subdir('backends')
subdir('configs/targets')
--
2.43.0