From 55d9e84d9ffd659c212fdf8fee1f27552067e6a8 Mon Sep 17 00:00:00 2001 From: AraHaan Date: Wed, 24 Jun 2026 20:32:20 -0400 Subject: [PATCH] Add a new --cross-prefix option to configure for pwsh users. Added the --cross-prefix option into the configure script with comments explaining why. --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 4e6c8d85b8..6b2f0f4fbc 100755 --- a/configure +++ b/configure @@ -152,6 +152,12 @@ case "$1" in -c* | --const) zconst=1; shift ;; -w* | --warn) warn=$((warn + 1)); shift ;; -d* | --debug) debug=1; shift ;; + # This option in configure is needed as passing CHOST from powershell core + # on linux to the configure script is not possible without this. And some + # people invoke configure within a common powershell build script that + # allows building their code for Windows, Linux, and MacOS with the least + # amount of files just for building their project. + --cross-prefix) CROSS_PREFIX="$2"; shift; shift ;; --sanitize) address=1; shift ;; --address) address=1; shift ;; --memory) memory=1; shift ;;