aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index eaf9433..22927f9 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2596,7 +2596,8 @@ class RunTarget(Target, CommandBase):
subdir: str,
subproject: str,
environment: environment.Environment,
- env: T.Optional['EnvironmentVariables'] = None):
+ env: T.Optional['EnvironmentVariables'] = None,
+ default_env: bool = True):
self.typename = 'run'
# These don't produce output artifacts
super().__init__(name, subdir, subproject, False, MachineChoice.BUILD, environment)
@@ -2605,6 +2606,7 @@ class RunTarget(Target, CommandBase):
self.command = self.flatten_command(command)
self.absolute_paths = False
self.env = env
+ self.default_env = default_env
def __repr__(self) -> str:
repr_str = "<{0} {1}: {2}>"