From 7b3d40db3b2326961f436618d6976772800d428e Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Thu, 17 Aug 2023 18:42:02 +0200 Subject: [PATCH] build: add ziglang version fallback method Signed-off-by: Reuben Miller --- ci/build_scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build_scripts/build.sh b/ci/build_scripts/build.sh index 23fcfd15839..c9a34e6d013 100755 --- a/ci/build_scripts/build.sh +++ b/ci/build_scripts/build.sh @@ -211,7 +211,7 @@ if ! zig --help &>/dev/null; then fi # Display zig version to help with debugging -echo "zig version: $(zig version ||:)" +echo "zig version: $(zig version 2>/dev/null || python3 -m ziglang version 2>/dev/null ||:)" if [ -z "$ARCH" ]; then # If no target has been given, choose the target triple based on the