Skip to content

Commit

Permalink
build: add ziglang version fallback method
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Aug 17, 2023
1 parent 92c1225 commit 7b3d40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b3d40d

Please sign in to comment.