diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-08-02 17:05:49 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-03 15:42:13 -0400 |
| commit | 28e6d2be9621dcd1056d6e386576510fd9cd8860 (patch) | |
| tree | 9100d9fa99f9b783eac20947b84638aa024074e1 /mesonbuild/backend/backends.py | |
| parent | cdef6741698d98453142cb2a0b65c72676dbb259 (diff) | |
| download | meson-28e6d2be9621dcd1056d6e386576510fd9cd8860.tar.gz | |
ExecutableSerialisation: capture and feed are optional strings
capture is the optional filename stdout is redirected to.
feed is the optional filename stdin reads from.
Diffstat (limited to 'mesonbuild/backend/backends.py')
| -rw-r--r-- | mesonbuild/backend/backends.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 268192432..62cf16296 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -510,8 +510,8 @@ class Backend: self, cmd: T.Sequence[T.Union[programs.ExternalProgram, build.BuildTarget, build.CustomTarget, File, str]], workdir: T.Optional[str] = None, extra_bdeps: T.Optional[T.List[build.BuildTarget]] = None, - capture: T.Optional[bool] = None, - feed: T.Optional[bool] = None, + capture: T.Optional[str] = None, + feed: T.Optional[str] = None, env: T.Optional[mesonlib.EnvironmentVariables] = None, tag: T.Optional[str] = None, verbose: bool = False, @@ -582,8 +582,8 @@ class Backend: cmd_args: T.Sequence[T.Union[str, mesonlib.File, build.BuildTarget, build.CustomTarget, programs.ExternalProgram]], workdir: T.Optional[str] = None, extra_bdeps: T.Optional[T.List[build.BuildTarget]] = None, - capture: T.Optional[bool] = None, - feed: T.Optional[bool] = None, + capture: T.Optional[str] = None, + feed: T.Optional[str] = None, force_serialize: bool = False, env: T.Optional[mesonlib.EnvironmentVariables] = None, verbose: bool = False) -> T.Tuple[T.Sequence[T.Union[str, File, build.Target, programs.ExternalProgram]], str]: @@ -638,9 +638,9 @@ class Backend: return es.cmd_args, '' args: T.List[str] = [] if capture: - args += ['--capture', str(capture)] + args += ['--capture', capture] if feed: - args += ['--feed', str(feed)] + args += ['--feed', feed] return ( self.environment.get_build_command() + ['--internal', 'exe'] + args + ['--'] + es.cmd_args, |
