Repository navigation
Skip target for scan-build #16184
Answered
by
Volker-Weissmann
black-sliver
asked this question in
Q&A
|
I have been running scan-build in CI and want to switch to Meson. Meson's scan-build solution seems to always build all executables. Is there a way to control this, or a way to detect scan-build during setup so we can skip defining an executable? Building everything is a bit too slow for CI for my taste and (at least) one of the targets does not add any value. |
Answered by
Volker-Weissmann
Sep 6, 2026
Replies: 1 comment 1 reply
|
You could add an option: meson_options.txt: meson.build: Then run scan-build like this: and your other tests like this: Does that work for you? |
1 reply
Answer selected by
bonzini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could add an option:
meson_options.txt:
meson.build:
Then run scan-build like this:
and your other tests like this:
Does that work for you?