diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-24 03:26:36 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-05 10:50:22 +0000 |
commit | efa9b75d5d21018b27f593ee65ea562d10d6dc2c (patch) | |
tree | 4df771de5d003863aa08676ae8c1b4a19b99ecad /mesonbuild/backend/backends.py | |
parent | 7fbab2c6e93af182703b813d5a1f962757743f26 (diff) | |
download | meson-efa9b75d5d21018b27f593ee65ea562d10d6dc2c.zip meson-efa9b75d5d21018b27f593ee65ea562d10d6dc2c.tar.gz meson-efa9b75d5d21018b27f593ee65ea562d10d6dc2c.tar.bz2 |
Set WINEPATH when running serialized executables
When the exe runner is `wine` or `wine32` or `wine64`, etc.
This allows people to run tests with wine.
Note that you also have to set WINEPATH to point to your custom
prefix(es) if your tests use external dependencies.
Closes https://github.com/mesonbuild/meson/issues/3620
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 44c3cae..e56d18d 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -617,8 +617,12 @@ class Backend: exe_wrapper = self.environment.cross_info.config['binaries'].get('exe_wrapper', None) else: exe_wrapper = None - if mesonlib.is_windows() or mesonlib.is_cygwin(): - extra_paths = self.determine_windows_extra_paths(exe, []) + if mesonlib.for_windows(is_cross, self.environment) or \ + mesonlib.for_cygwin(is_cross, self.environment): + extra_bdeps = [] + if isinstance(exe, build.CustomTarget): + extra_bdeps = exe.get_transitive_build_target_deps() + extra_paths = self.determine_windows_extra_paths(exe, extra_bdeps) else: extra_paths = [] cmd_args = [] |