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/mountfsd | |
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/mountfsd')
-rw-r--r-- | src/mountfsd/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mountfsd/meson.build b/src/mountfsd/meson.build index 53fc3d368c..7b31fdc91f 100644 --- a/src/mountfsd/meson.build +++ b/src/mountfsd/meson.build @@ -1,5 +1,9 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +if conf.get('ENABLE_MOUNTFSD') != 1 + subdir_done() +endif + systemd_mountwork_sources = files( 'mountwork.c', ) @@ -12,12 +16,10 @@ systemd_mountfsd_sources = files( executables += [ libexec_template + { 'name' : 'systemd-mountfsd', - 'conditions' : ['ENABLE_MOUNTFSD'], 'sources' : systemd_mountfsd_sources, }, libexec_template + { 'name' : 'systemd-mountwork', - 'conditions' : ['ENABLE_MOUNTFSD'], 'sources' : systemd_mountwork_sources, }, ] |