aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-24 19:34:19 -0700
committerEli Schwartz <eschwartz93@gmail.com>2023-07-25 00:13:16 -0400
commit020610cfbe55870e9ca3c8206328112b95e0ec4e (patch)
tree8066e57ae75bd8bd611f51c992935ad75a24fb56 /test cases/unit
parentdd578decdb473a9e46c266567077ba114ec36272 (diff)
downloadmeson-020610cfbe55870e9ca3c8206328112b95e0ec4e.zip
meson-020610cfbe55870e9ca3c8206328112b95e0ec4e.tar.gz
meson-020610cfbe55870e9ca3c8206328112b95e0ec4e.tar.bz2
modules/pkgconfig: Don't insert None into devenv list
When the pkgconfig module is imported, but not used, it will insert None on the end of the devenv list. This list is not expected to contain None, and causes Meson to crash. This can happen in complex build setups (reported from mesa), where pkgconfig is only used in some configurations Fixes: #12032
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/90 devenv/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/unit/90 devenv/meson.build b/test cases/unit/90 devenv/meson.build
index 72d8fdc..316b20c 100644
--- a/test cases/unit/90 devenv/meson.build
+++ b/test cases/unit/90 devenv/meson.build
@@ -20,3 +20,6 @@ env = environment({'TEST_C': ['/prefix']}, method: 'prepend')
meson.add_devenv(env)
env = environment({'TEST_C': ['/suffix']}, method: 'append')
meson.add_devenv(env)
+
+# Reproducer for https://github.com/mesonbuild/meson/issues/12032
+pkgconf = import('pkgconfig')