diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-02-26 19:57:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 19:57:16 +0200 |
| commit | fa2ab69e0fdc256707fe5f475c497d596745dade (patch) | |
| tree | 2ef57b0de6ba4bd56713cfcd85c8f6293c856dc0 /mesonbuild/modules | |
| parent | 9afe62232c64a7151d210900367674bb090cb3b3 (diff) | |
| parent | 435e881c18cda15fc4f8fc9e42f566cdc86cd791 (diff) | |
| download | meson-fa2ab69e0fdc256707fe5f475c497d596745dade.tar.gz | |
Merge pull request #11867 from xclaesse/cargo-features
Cargo features
Diffstat (limited to 'mesonbuild/modules')
| -rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 3f9ce7b71..ebe0d92d5 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -680,6 +680,8 @@ class PkgConfigModule(NewExtensionModule): reserved = ['prefix', 'libdir', 'includedir'] variables = [] for name, value in vardict.items(): + if not value: + FeatureNew.single_use('empty variable value in pkg.generate', '1.4.0', state.subproject, location=state.current_node) if not dataonly and name in reserved: raise mesonlib.MesonException(f'Variable "{name}" is reserved') variables.append((name, value)) |
