diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2023-08-01 14:04:01 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2023-08-03 13:04:48 +0200 |
| commit | ff136d2a99253483f263371bb7b479d2278d9401 (patch) | |
| tree | 2741a7921cb3cc2520d7aa6245c6609aacabd246 | |
| parent | ef4fe31f33648ece16bf86b10262c7424c8470f8 (diff) | |
| download | focaccia-qemu-ff136d2a99253483f263371bb7b479d2278d9401.tar.gz focaccia-qemu-ff136d2a99253483f263371bb7b479d2278d9401.zip | |
configure: support passthrough of -Dxxx args to meson
This can be useful for setting some meson global options, such as the optimization level or debug state.xs Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230801130403.164060-7-berrange@redhat.com> [thuth: Move the help text into the section with the other --... options] Signed-off-by: Thomas Huth <thuth@redhat.com>
| -rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure index 26ec5e4f54..afb25fd558 100755 --- a/configure +++ b/configure @@ -757,6 +757,9 @@ for opt do # everything else has the same name in configure and meson --*) meson_option_parse "$opt" "$optarg" ;; + # Pass through -Dxxxx options to meson + -D*) meson_options="$meson_options $opt" + ;; esac done @@ -846,6 +849,7 @@ $(echo Available targets: $default_target_list | \ --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only): + -Dmesonoptname=val passthrough option to meson unmodified --cross-prefix=PREFIX use PREFIX for compile tools, PREFIX can be blank [$cross_prefix] --cc=CC use C compiler CC [$cc] --host-cc=CC use C compiler CC [$host_cc] for code run at |