summaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-11-02 19:50:54 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-08 22:29:07 +0200
commit58d5db2b1e118afd99b3c6a970be6cdee69dd260 (patch)
tree50326fd0fee8075190316cdbac37df731a755890 /mesonbuild/build.py
parent46788d1b5bb72f59cc931e54912c81666ce30f84 (diff)
downloadmeson-runtargetnames.tar.gz
Store run target names in build.runtargetnames
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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 68fbd187e..6601f01ad 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]]]