Skip to content

Commit

Permalink
meson: make "developer" mode the default
Browse files Browse the repository at this point in the history
This means that the dbus doc consistency checks will be enabled by default,
including in the CI. I think that will work better than current state where
people do not enable them and them follow-up patches for the docs like the
parent commit must be had.
  • Loading branch information
keszybz committed Sep 17, 2020
1 parent 1f6b414 commit 4c8e5f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/HACKING.md
Expand Up @@ -99,6 +99,13 @@ And after that, head over to your repo on GitHub and click "Compare & pull reque
Happy hacking!


## Developer and release modes

In the default meson configuration (`-Dmode=developer`), certain checks are
enabled that are suitable when hacking on systemd (such as internal
documentation consistency checks). Those are not useful when compiling for code
for distribution and can be disabled by setting `-Dmode=release`.

## Fuzzers

systemd includes fuzzers in `src/fuzz/` that use libFuzzer and are automatically
Expand Down
1 change: 1 addition & 0 deletions meson.build
Expand Up @@ -3503,6 +3503,7 @@ watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog
status = [
'@0@ @1@'.format(meson.project_name(), meson.project_version()),

'build mode: @0@'.format(get_option('mode')),
'split /usr: @0@'.format(split_usr),
'split bin-sbin: @0@'.format(split_bin),
'prefix directory: @0@'.format(prefixdir),
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Expand Up @@ -4,7 +4,7 @@
option('version-tag', type : 'string',
description : 'override the git version string')

option('mode', type : 'combo', choices : ['default', 'developer'],
option('mode', type : 'combo', choices : ['developer', 'release'],
description : 'enable additional checks suitable for systemd development')

option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
Expand Down

0 comments on commit 4c8e5f4

Please sign in to comment.