On Fri, Aug 09, 2024 at 03:43:33PM +0800, yong.hu...@smartx.com wrote: > From: Hyman Huang <yong.hu...@smartx.com> > > The initrd-stress.img was compiled by specifying the > target, to make it easier for developers to play the > guestperf tool, make it built by default.
If you're going to do this, then you will need to make sure it is only built on a Linux host, and when glib static & sysprof are found. eg if host_os == 'linux' && glib_static.found() && sysprof.found() > > Signed-off-by: Hyman Huang <yong.hu...@smartx.com> > --- > tests/migration/meson.build | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tests/migration/meson.build b/tests/migration/meson.build > index a91aa61c65..393e401800 100644 > --- a/tests/migration/meson.build > +++ b/tests/migration/meson.build > @@ -7,12 +7,13 @@ stress = executable( > files('stress.c'), > dependencies: [glib_static, sysprof], > link_args: ['-static'], > - build_by_default: false, > + build_by_default: true, > ) > > custom_target( > 'initrd-stress.img', > output: 'initrd-stress.img', > input: stress, > - command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@'] > + command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@'], > + build_by_default: true, > ) > -- > 2.11.0 > > With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|