diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-15 15:53:57 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-15 15:53:57 +0200 |
commit | d58c5f0fe7159a05a46c6c791d3350c651600b5d (patch) | |
tree | d0a40d3d1d868ded82cf32a3bceca414dd1e58d4 /meson.build | |
parent | Merge pull request #15206 from anitazha/systoomd-v0 (diff) | |
download | systemd-d58c5f0fe7159a05a46c6c791d3350c651600b5d.tar.xz systemd-d58c5f0fe7159a05a46c6c791d3350c651600b5d.zip |
meson: enable oomd by default in developer mode
We want to compile the new code in CI without having to explicitly specify
-Doomd=true everywhere. Let's enable it by default, and rely on distros
setting -Dmode=release to not have it enabled by default.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 43cf7bf2bb..7940a70c00 100644 --- a/meson.build +++ b/meson.build @@ -1412,7 +1412,15 @@ conf.set10('ENABLE_HOMED', have) have = have and conf.get('HAVE_PAM') == 1 conf.set10('ENABLE_PAM_HOME', have) -have = get_option('oomd') and get_option('mode') == 'developer' +have = get_option('oomd') +if have == 'auto' + have = get_option('mode') == 'developer' +else + have = have == 'true' + if have and get_option('mode') != 'developer' + error('oomd is not available in release mode (yet)') + endif +endif conf.set10('ENABLE_OOMD', have) want_remote = get_option('remote') |