On 01/08/2023 15.04, Daniel P. Berrangé wrote:
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é <berra...@redhat.com>
---
  configure | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index 26ec5e4f54..9fe3718b77 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
@@ -887,6 +890,8 @@ cat << EOF
    pie             Position Independent Executables
    debug-tcg       TCG debugging (default is disabled)
+ -Dmesonoptname=val passthrough option to meson unmodified

I'd rather place that earlier in the help text, above the "meson_options_help" line in the configure script, next to the other --option=something lines.

 Thomas

  NOTE: The object files are built at the place where configure is launched
  EOF
  exit 0


Reply via email to