From ceeb1af07c576bf3ec14faee15b85af1d8031486 Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia <7854099+viferga@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:52:59 -0500 Subject: [PATCH] Update metacall-configure.ps1 --- tools/metacall-configure.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/metacall-configure.ps1 b/tools/metacall-configure.ps1 index 96ccb9ac3..8db8f9f38 100755 --- a/tools/metacall-configure.ps1 +++ b/tools/metacall-configure.ps1 @@ -29,6 +29,7 @@ $Global:BUILD_V8 = 0 $Global:BUILD_NODEJS = 0 $Global:BUILD_TYPESCRIPT = 0 $Global:BUILD_RUST = 0 +$Global:BUILD_ZIG = 0 $Global:BUILD_FILE = 0 $Global:BUILD_RPC = 0 $Global:BUILD_WASM = 0 @@ -99,6 +100,10 @@ function sub-options { echo "Build with rust support" $Global:BUILD_RUST = 1 } + if ("$option" -eq 'zig') { + echo "Build with zig support" + $Global:BUILD_ZIG = 1 + } if ("$option" -eq 'file') { echo "Build with file support" $Global:BUILD_FILE = 1 @@ -298,7 +303,8 @@ function sub-configure { } # Zig - if ($BUILD_RUST -eq 1) { + if ($BUILD_ZIG -eq 1) { + # TODO # $Global:BUILD_STRING = "$BUILD_STRING -DOPTION_BUILD_LOADERS_ZIG=On" # if ($BUILD_SCRIPTS -eq 1) { @@ -450,6 +456,8 @@ function sub-help { echo " v8: build with v8 support" echo " nodejs: build with nodejs support" echo " typescript: build with typescript support" + echo " rust: build with rust support" + echo " zig: build with zig support" echo " file: build with file support" echo " rpc: build with rpc support" echo " wasm: build with wasm support"