diff options
| author | Luca Bacci <luca.bacci982@gmail.com> | 2025-05-29 12:04:34 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-06-17 14:08:48 +0300 |
| commit | 3878f8db71e35c7a57697c97debb5a5fd8b2fc47 (patch) | |
| tree | 71c4f55e805af9a2885211c4606133d4c05c6baf | |
| parent | a6e540d18a46393cbf8c153a76388af1b8b573e5 (diff) | |
| download | meson-3878f8db71e35c7a57697c97debb5a5fd8b2fc47.tar.gz | |
Test serialization: Simplify determination of Windows extra paths
Pointed out by Charles Brunet
| -rw-r--r-- | mesonbuild/backend/backends.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 8ce93ef5f..28a92d28e 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1277,12 +1277,8 @@ class Backend: if isinstance(exe, build.CustomTarget): extra_bdeps = list(exe.get_transitive_build_target_deps()) extra_bdeps.extend(t.depends) + extra_bdeps.extend(a for a in t.cmd_args if isinstance(a, build.BuildTarget)) extra_paths = self.determine_windows_extra_paths(exe, extra_bdeps) - for a in t.cmd_args: - if isinstance(a, build.BuildTarget): - for p in self.determine_windows_extra_paths(a, []): - if p not in extra_paths: - extra_paths.append(p) else: extra_paths = [] |
