diff options
| author | L. E. Segovia <amy@amyspark.me> | 2025-03-21 22:02:36 -0300 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2025-05-22 13:49:18 +0530 |
| commit | e8c715786d85dcdbc367f3e379acae25a899c235 (patch) | |
| tree | 3ed8addf3a0e86c46b9f3831717560cd75ecf6c1 /mesonbuild/build.py | |
| parent | 49c462ba7a85063ac03b8cd67007c3607e2bc4de (diff) | |
| download | meson-e8c715786d85dcdbc367f3e379acae25a899c235.tar.gz | |
gnome.mkenums: Allow passthrough of ExternalPrograms to enable converting only the real arguments to response file
Diffstat (limited to 'mesonbuild/build.py')
| -rw-r--r-- | mesonbuild/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index f4183b522..d38abcbb5 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2576,7 +2576,7 @@ class CommandBase: subproject: str def flatten_command(self, cmd: T.Sequence[T.Union[str, File, programs.ExternalProgram, BuildTargetTypes]]) -> \ - T.List[T.Union[str, File, BuildTarget, 'CustomTarget']]: + T.List[T.Union[str, File, BuildTarget, CustomTarget, programs.ExternalProgram]]: cmd = listify(cmd) final_cmd: T.List[T.Union[str, File, BuildTarget, 'CustomTarget']] = [] for c in cmd: @@ -2593,7 +2593,8 @@ class CommandBase: # Can only add a dependency on an external program which we # know the absolute path of self.depend_files.append(File.from_absolute_file(path)) - final_cmd += c.get_command() + # Do NOT flatten -- it is needed for later parsing + final_cmd.append(c) elif isinstance(c, (BuildTarget, CustomTarget)): self.dependencies.append(c) final_cmd.append(c) |
