diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-12 09:31:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-19 00:17:29 +0200 |
commit | 3ef7b231782e3554217a61b4b04f947be76e7ca7 (patch) | |
tree | 6aa5c289e0dbef70cf461c5eef55c5f520f27e8b /mesonbuild/backend/backends.py | |
parent | 28c93ce4af25750b721e2dcaebb1864d509edd32 (diff) | |
download | meson-3ef7b231782e3554217a61b4b04f947be76e7ca7.zip meson-3ef7b231782e3554217a61b4b04f947be76e7ca7.tar.gz meson-3ef7b231782e3554217a61b4b04f947be76e7ca7.tar.bz2 |
backends: hide meson --internal exe cmdline from backends
Return the command line from serialize_executable, which is then
renamed to as_meson_exe_cmdline. This avoids repeating code that
is common to custom targets and generators.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 982b0ee..71d5e20 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -323,7 +323,7 @@ class Backend: raise MesonException('Unknown data type in object list.') return obj_list - def serialize_executable(self, tname, exe, cmd_args, workdir, env=None, + def as_meson_exe_cmdline(self, tname, exe, cmd_args, workdir, env=None, extra_paths=None, capture=None): ''' Serialize an executable for running with a generator or a custom target @@ -376,7 +376,7 @@ class Backend: extra_paths, capture, self.environment.need_exe_wrapper()) pickle.dump(es, f) - return exe_data + return self.environment.get_build_command() + ['--internal', 'exe', exe_data] def serialize_tests(self): test_data = os.path.join(self.environment.get_scratch_dir(), 'meson_test_setup.dat') |