You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is by design, but there doesn't seem to be a way to suppress tests from being compiled by default (vs only when the test target is built/run).
There is a FIXME in the codebase about changing this. See: mesonbuild/backends/backends.py : get_build_by_default_targets(). Would you like to work on fixing it?
When running `ninja all` we shouldn't build testsuite programs as these
might not be wanted e.g. in order to just install the project. We do
want them to be built when running `ninja test`. Since meson 0.63 we
actually have a dedicated ninja alias for test dependencies -- move
these from the "all" rule to the dedicated test/benchmark rules.
Closes: mesonbuild#1704Closes: mesonbuild#1949Closes: mesonbuild#2518Closes: mesonbuild#3662Closes: mesonbuild#5728Closes: mesonbuild#5867Closes: mesonbuild#6511Closes: mesonbuild#11317Closes: mesonbuild#13378
I'm not sure if this is by design, but there doesn't seem to be a way to suppress tests from being compiled by default (vs only when the test target is built/run).
ninja
here compiles test1 unconditionally. I would expect it to only be compiled whenninja test
is run.The text was updated successfully, but these errors were encountered: