On 10/23/24 10:38 AM, Ramsay Jones wrote: > Hmm, I could have sworn that this caused a complete rebuild for me > (even when having just built), hence the '--no-rebuild --print-errorlogs' > parameters to meson test. (Oh, maybe that was just 'meson test' - so > how do you run *all* tests with meson - rather than 'ninja test'). "meson test" without --no-rebuild will first run "ninja" to verify that everything has been built, and build it if it hasn't been. When passing specific test names, it will filter for dependencies of that specific testcase, and only ensure *those* are up to date. Assuming those dependencies are accurate, of course. :D What do you mean by "complete rebuild"? Do you mean all binaries that were already built and up to date get marked stale and recreated? > BTW, I have been doing: > > $ meson setup .. -Dprefix=$HOME > > so that it matches the default prefix from the Makefile (not that I > have attempted to actually install yet!;) ). Can the default be set > in the meson.build file (with command-line override, of course)? project('git', 'c', meson_version: '>=1.3.0', # MSVC does not support GNU99, and C99 does not define __STDC_VERSION__ # on MSVC. So we instead fall back to C11 there. default_options: ['c_std=gnu99,c11'], You can pass any command-line options in as default_options, including prefix. Defaulting to $HOME is somewhat unconventional regardless of whether it's done in a Makefile or a configure.ac or a meson.build or a CMakeLists.txt, but given the Makefile does indeed do that I suppose it's not incredibly bizarre to do it in meson.build as well. :) -- Eli Schwartz
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature