diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-02 19:50:54 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-10 23:45:42 +0200 |
commit | 35e809fc5e7c06e46753722bff03b491b6223df9 (patch) | |
tree | 340e06887495ee996511bb89e97ccfdb58cc4811 /mesonbuild/build.py | |
parent | 1238b16c8ec38176cbb8ef4bcfb96b413e98dbe7 (diff) | |
download | meson-35e809fc5e7c06e46753722bff03b491b6223df9.zip meson-35e809fc5e7c06e46753722bff03b491b6223df9.tar.gz meson-35e809fc5e7c06e46753722bff03b491b6223df9.tar.bz2 |
Store run target names in build.
This way we can easily check that we only provide builtin targets such
as clang-format if the user has not provided their own.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 68fbd18..6601f01 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -117,6 +117,7 @@ class Build: self.environment = environment self.projects = {} self.targets = OrderedDict() + self.run_target_names = set() # type: typing.Set[typing.Tuple[str, str]] self.global_args = PerMachine({}, {}) # type: PerMachine[typing.Dict[str, typing.List[str]]] self.projects_args = PerMachine({}, {}) # type: PerMachine[typing.Dict[str, typing.List[str]]] self.global_link_args = PerMachine({}, {}) # type: PerMachine[typing.Dict[str, typing.List[str]]] |