From: Paolo Bonzini Date: Thu, 4 Dec 2025 16:57:17 +0000 (+0100) Subject: build: do not include @block.syms/@qemu.sys with modules disabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9103b40f4f5abf19a12e4192177b3ebe442c2b4d;p=thirdparty%2Fqemu.git build: do not include @block.syms/@qemu.sys with modules disabled Including specific symbols used by modules is not necessary for monolithic executables. This avoids a failure where emcc does not support @file syntax inside a response file---which in turn breaks the WebAssembly build if the command line is long enough that meson decides to use a response file. Signed-off-by: Paolo Bonzini --- diff --git a/meson.build b/meson.build index e6a11cefdb..02738c9765 100644 --- a/meson.build +++ b/meson.build @@ -4270,7 +4270,7 @@ foreach target : target_dirs c_args += ['-DCONFIG_DEVICES="@0@-config-devices.h"'.format(target)] arch_srcs += config_devices_h[target] - link_args += ['@block.syms', '@qemu.syms'] + link_args += enable_modules ? ['@block.syms', '@qemu.syms'] : [] else abi = config_target['TARGET_ABI_DIR'] target_type='user' @@ -4499,14 +4499,15 @@ if xkbcommon.found() endif if have_tools + link_args = enable_modules ? ['@block.syms'] : [] qemu_img = executable('qemu-img', [files('qemu-img.c'), hxdep], - link_args: '@block.syms', link_depends: block_syms, + link_args: link_args, link_depends: block_syms, dependencies: [authz, block, crypto, io, qom, qemuutil], install: true) qemu_io = executable('qemu-io', files('qemu-io.c'), - link_args: '@block.syms', link_depends: block_syms, + link_args: link_args, link_depends: block_syms, dependencies: [block, qemuutil], install: true) qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'), - link_args: '@block.syms', link_depends: block_syms, + link_args: link_args, link_depends: block_syms, dependencies: [blockdev, qemuutil, selinux], install: true)