Skip to content

Commit 8b5fb29

Browse files
committed
meson-buildoptions: include list of tracing backends
Manually patch the introspection data to include the tracing backends. This works around a deficiency in Meson that will be fixed by mesonbuild/meson#9395. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 61d6309 commit 8b5fb29

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/meson-buildoptions.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,23 @@ def print_parse(options):
5858
print("}")
5959

6060

61+
def fixup_options(options):
62+
# Meson <= 0.60 does not include the choices in array options, fix that up
63+
for opt in options:
64+
if opt["name"] == "trace_backends":
65+
opt["choices"] = [
66+
"dtrace",
67+
"ftrace",
68+
"log",
69+
"nop",
70+
"simple",
71+
"syslog",
72+
"ust",
73+
]
74+
75+
6176
options = load_options(json.load(sys.stdin))
77+
fixup_options(options)
6278
print("# This file is generated by meson-buildoptions.py, do not edit!")
6379
print_help(options)
6480
print_parse(options)

0 commit comments

Comments
 (0)