diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-11-12 19:30:38 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-13 00:21:33 +0100 |
commit | e2f82f61510ac8cea86a32d269df346e24c55c3a (patch) | |
tree | edd148a7b06208fe91b92d71fca48ebd8a32b5c4 /src/sysusers | |
parent | run0: when changing privileges to non-root, do not show superhero emoji (diff) | |
download | systemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.tar.xz systemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.zip |
various: check meson feature flag early
Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sysusers/meson.build b/src/sysusers/meson.build index 403d82a340..123ff41d3f 100644 --- a/src/sysusers/meson.build +++ b/src/sysusers/meson.build @@ -1,16 +1,18 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +if conf.get('ENABLE_SYSUSERS') != 1 + subdir_done() +endif + executables += [ executable_template + { 'name' : 'systemd-sysusers', 'public' : true, - 'conditions' : ['ENABLE_SYSUSERS'], 'sources' : files('sysusers.c'), }, executable_template + { 'name' : 'systemd-sysusers.standalone', 'public' : have_standalone_binaries, - 'conditions' : ['ENABLE_SYSUSERS'], 'sources' : files('sysusers.c'), 'c_args' : '-DSTANDALONE', 'link_with' : [ |