|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v2 24/24] configure: automatically parse command line for meson -D options |
Date: | Wed, 13 Oct 2021 19:00:41 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 13/10/21 13:27, Thomas Huth wrote:
+def fixup_options(options):+ # Meson <= 0.60 does not include the choices in array options, fix that up+ for opt in options: + if opt["name"] == "trace_backends": + opt["choices"] = [ + "dtrace", + "ftrace", + "log", + "nop", + "simple", + "syslog", + "ust", + ]Do we need a check for a fixed meson version here?
No, on a fixed version of Meson it will just overwrite the existing array with itself. Once we can require a newer version, we'll remove the fixup.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |