summaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-09 22:24:49 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-05-09 22:24:49 +0530
commita3d946e05295333990deeb667370314ada5a505a (patch)
tree1614b8e1f09344641ac612751c87b8296c705097 /mesonbuild/build.py
parentf4dca394821c7dd2eb312e3cb2f38d9b2663cc3b (diff)
downloadmeson-nirbheek/fix-test-setup-env.tar.gz
test setups: Inherit env when using a test setupnirbheek/fix-test-setup-env
Closes https://github.com/mesonbuild/meson/issues/3525
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 5d1163bb4..175066102 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -290,7 +290,7 @@ class EnvironmentVariables:
return value
def get_env(self, full_env):
- env = {}
+ env = full_env.copy()
for method, name, values, kwargs in self.envvars:
env[name] = method(full_env, name, values, kwargs)
return env