diff options
| author | Chris Mayo <aklhfex@gmail.com> | 2025-11-11 19:27:02 +0000 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-11-11 20:43:39 -0500 |
| commit | 683e07f65cd9ecc5009ad0b405816f7ceb98c4bb (patch) | |
| tree | 80821fd5093bc538cfff616bc56a57668c7159d8 | |
| parent | f9fc48c61c9545e0b029b1e217078edfa2812403 (diff) | |
| download | meson-683e07f65cd9ecc5009ad0b405816f7ceb98c4bb.tar.gz | |
vala: Remove space from --target-glib version
If the dependency version contains a space:
dependency('glib-2.0', version: '>= 2.40.0')
Then the --target-glib version has a space:
--target-glib ' 2.40.0'
The quotes and space have no effect on valac. Tidy the output.
| -rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 545b41756..76bd20932 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -998,7 +998,7 @@ class Backend: if dep.version_reqs is not None: for req in dep.version_reqs: if req.startswith(('>=', '==')): - commands += ['--target-glib', req[2:]] + commands += ['--target-glib', req[2:].strip()] break elif isinstance(dep, dependencies.InternalDependency) and dep.version is not None: glib_version = dep.version.split('.') |
