summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-08-11 18:33:25 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-08-17 10:36:05 -0400
commit14b76321c3f528e95384f7ea5f238ccd1340df3d (patch)
treeb5300efc6cc31c68b33ab0877a4aa0aa060d4389 /test cases
parent314dc6db9edfeda13318545409927869e73e4fad (diff)
downloadmeson-14b76321c3f528e95384f7ea5f238ccd1340df3d.tar.gz
rewriter: accept UnknownValue for name_prefix/name_suffix
Fixes another problem with running "meson configure" on Mesa. Related: #14840 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/58 introspect buildoptions/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/unit/58 introspect buildoptions/meson.build b/test cases/unit/58 introspect buildoptions/meson.build
index 36e03e0cc..a6a8b86ba 100644
--- a/test cases/unit/58 introspect buildoptions/meson.build
+++ b/test cases/unit/58 introspect buildoptions/meson.build
@@ -14,5 +14,13 @@ if r.returncode() != 0
error('FAILED')
endif
+name_prefix = 'lib'
+if get_option('buildtype') == 'release'
+ # ensure that these variables become an UnkownValue
+ name_prefix = []
+endif
+
+static_library('hello', 'hello.c', name_prefix: name_prefix)
+
add_languages(r.stdout().strip(), required: true)
add_languages('afgggergearvearghergervergreaergaergasv', required: false)