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 + NOTE: The object files are built at the place where configure is launched EOF exit 0 -- 2.41.0