In the MSVC build environment, nm is missing; at the same time,
scripts/undefsym.py exits with code 0 at the beginning
for non-modular builds.
So, this change is harmless because it already didn't do anything
in non-modular builds, but remove the additional tool requirements.
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
---
meson.build | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/meson.build b/meson.build
index 4a3fc306b7..cc9e9784e9 100644
--- a/meson.build
+++ b/meson.build
@@ -3908,6 +3908,9 @@ modinfo_generate = find_program('scripts/modinfo-generate.py')
modinfo_files = []
audio_modinfo_files = []
+block_syms = []
+qemu_syms = []
+
block_mods = []
system_mods = []
emulator_modules = []
@@ -4023,18 +4026,18 @@ if enable_modules
if emulator_modules.length() > 0
alias_target('modules', emulator_modules)
endif
-endif
-nm = find_program('nm')
-undefsym = find_program('scripts/undefsym.py')
-block_syms = custom_target('block.syms', output: 'block.syms',
- input: [libqemuutil, block_mods],
- capture: true,
- command: [undefsym, nm, '@INPUT@'])
-qemu_syms = custom_target('qemu.syms', output: 'qemu.syms',
- input: [libqemuutil, system_mods],
- capture: true,
- command: [undefsym, nm, '@INPUT@'])
+ nm = find_program('nm')
+ undefsym = find_program('scripts/undefsym.py')
+ block_syms = custom_target('block.syms', output: 'block.syms',
+ input: [libqemuutil, block_mods],
+ capture: true,
+ command: [undefsym, nm, '@INPUT@'])
+ qemu_syms = custom_target('qemu.syms', output: 'qemu.syms',
+ input: [libqemuutil, system_mods],
+ capture: true,
+ command: [undefsym, nm, '@INPUT@'])
+endif
authz_ss = authz_ss.apply({})
libauthz = static_library('authz', authz_ss.sources() + genh,
--
2.52.0