aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-02-23 10:04:57 -0500
committerXavier Claessens <xclaesse@gmail.com>2022-02-28 09:03:27 -0500
commit24f224777de7a54a1334c820509bef0aa9b37678 (patch)
treef2a3ba72ad595e898394939ee793265768d1138b /mesonbuild/build.py
parent30cdb2a28077d9a0364b9ef6b231927c52436a6b (diff)
downloadmeson-24f224777de7a54a1334c820509bef0aa9b37678.zip
meson-24f224777de7a54a1334c820509bef0aa9b37678.tar.gz
meson-24f224777de7a54a1334c820509bef0aa9b37678.tar.bz2
devenv: Add --dump option
It prints all envorinmente variables that have been modified. Can be used by shell scripts that wish to setup their environment themself.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index a6648d3..35e5e66 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -476,6 +476,9 @@ class EnvironmentVariables(HoldableObject):
def has_name(self, name: str) -> bool:
return name in self.varnames
+ def get_names(self) -> T.Set[str]:
+ return self.varnames
+
def set(self, name: str, values: T.List[str], separator: str = os.pathsep) -> None:
self.varnames.add(name)
self.envvars.append((self._set, name, values, separator))