diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-05-12 10:53:37 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-05-14 12:15:03 -0700 |
commit | d51551231ffa19c48ec5a5c36da11e7f03921262 (patch) | |
tree | b1ca40a06ab3c1a009e6caa1e53dcfd70fdb2fca /mesonbuild/build.py | |
parent | a313f46be7f146314e10760db016862f9516939b (diff) | |
download | meson-d51551231ffa19c48ec5a5c36da11e7f03921262.zip meson-d51551231ffa19c48ec5a5c36da11e7f03921262.tar.gz meson-d51551231ffa19c48ec5a5c36da11e7f03921262.tar.bz2 |
use FeatureNew.single_use
This is just slightly cleaner looking
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 7c065c8..67b92a5 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -776,7 +776,7 @@ class BuildTarget(Target): if isinstance(src, str): src = File(False, self.subdir, src) elif isinstance(src, File): - FeatureNew('File argument for extract_objects', '0.50.0').use(self.subproject) + FeatureNew.single_use('File argument for extract_objects', '0.50.0', self.subproject) else: raise MesonException('Object extraction arguments must be strings or Files.') # FIXME: It could be a generated source @@ -2160,7 +2160,7 @@ class CustomTarget(Target): 'when installing a target') if isinstance(kwargs['install_dir'], list): - FeatureNew('multiple install_dir for custom_target', '0.40.0').use(self.subproject) + FeatureNew.single_use('multiple install_dir for custom_target', '0.40.0', self.subproject) # If an item in this list is False, the output corresponding to # the list index of that item will not be installed self.install_dir = typeslistify(kwargs['install_dir'], (str, bool)) |