Skip to content
Discussion options

You must be logged in to vote

You could add an option:

meson_options.txt:

option('build_slow_stuff', type : 'boolean', value : true)

meson.build:

...
if get_option('build_slow_stuff')
  executable('big_exe', many_files)
endif

executable('other_exe', few_files)
...

Then run scan-build like this:

meson setup builddir_for_scanbuild -Dbuild_slow_stuff=false
ninja -C builddir_for_scanbuild scan-build

and your other tests like this:

meson setup builddir_for_other_stuff
ninja -C builddir_for_other_stuff test

Does that work for you?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@black-sliver
Comment options

Answer selected by bonzini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants