From 14b76321c3f528e95384f7ea5f238ccd1340df3d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 11 Aug 2025 18:33:25 +0200 Subject: rewriter: accept UnknownValue for name_prefix/name_suffix Fixes another problem with running "meson configure" on Mesa. Related: #14840 Signed-off-by: Paolo Bonzini --- test cases/unit/58 introspect buildoptions/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test cases') 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) -- cgit v1.2.3