Skip to content

Commit

Permalink
More fixes for macOS in build-release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Oct 28, 2023
1 parent ce94cac commit 4be566e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ echo "BUILD:"
) 2>&1 | log ' '

built_ver() {
if [[ "$ARCH" != "$GOARCH" ]]; then
if [[ "$PLATFORM" == "linux" && "$ARCH" != "$GOARCH" ]]; then
EXTRA=
if [ -d /usr/$LDARCH-linux-$GNUTYPE/libc ]; then
EXTRA="-L /usr/$LDARCH-linux-$GNUTYPE/libc"
Expand All @@ -190,6 +190,8 @@ built_ver() {
-L /usr/$LDARCH-linux-$GNUTYPE \
$EXTRA \
$BIN --version
elif [[ "$PLATFORM" == "darwin" && "$ARCH" != "$GOARCH" ]]; then
echo "usql $VER"
else
$BIN --version
fi
Expand Down

0 comments on commit 4be566e

Please sign in to comment.