aboutsummaryrefslogtreecommitdiff
path: root/accel/tcg
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-08-30 12:20:53 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-09-07 13:32:37 +0200
commit2c13c574418e4b17974f7ef71d200ac064fb8d4b (patch)
treec6a7220caebea402bff56da2897965ff4e0a1589 /accel/tcg
parent2a5919ab642a3273698233ef46c83741eec327bf (diff)
downloadqemu-2c13c574418e4b17974f7ef71d200ac064fb8d4b.zip
qemu-2c13c574418e4b17974f7ef71d200ac064fb8d4b.tar.gz
qemu-2c13c574418e4b17974f7ef71d200ac064fb8d4b.tar.bz2
configure, meson: move --enable-plugins to meson
While the option still needs to be parsed in the configure script (it's needed by tests/tcg, and also to decide about recursing into contrib/plugins), passing it to Meson can be done with -D instead of using config-host.mak. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/tcg')
-rw-r--r--accel/tcg/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build
index 166bef1..8ace783 100644
--- a/accel/tcg/meson.build
+++ b/accel/tcg/meson.build
@@ -11,7 +11,9 @@ tcg_ss.add(files(
))
tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
tcg_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c'))
-tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c')])
+if get_option('plugins')
+ tcg_ss.add(files('plugin-gen.c'))
+endif
tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
tcg_ss.add(when: 'CONFIG_LINUX', if_true: files('perf.c'))
specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)