Skip to content

Commit

Permalink
Tweak build for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilkes committed Oct 20, 2024
1 parent 9a1537e commit 25c6ce7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ for arg in "$@"; do
BUILD_GO=1
BUILD_GEN=1
SOMETHING=1
case $(uname -s) in
Darwin*)
if [ "$(uname -p)" == "arm" ]; then
export MACOSX_DEPLOYMENT_TARGET=11
else
export MACOSX_DEPLOYMENT_TARGET=10.15
fi
;;
esac
;;
--help | -h)
echo "$0 [options]"
Expand Down Expand Up @@ -90,6 +81,16 @@ if [ "$SOMETHING"x != "1x" ]; then
BUILD_GO=1
fi

case $(uname -s) in
Darwin*)
if [ "$(uname -p)" == "arm" ]; then
export MACOSX_DEPLOYMENT_TARGET=11
else
export MACOSX_DEPLOYMENT_TARGET=10.15
fi
;;
esac

LDFLAGS_ALL="-X github.com/richardwilkes/toolbox/cmdline.AppVersion=$RELEASE $EXTRA_LD_FLAGS"
STD_FLAGS="-v -buildvcs=true $EXTRA_BUILD_FLAGS"

Expand Down

0 comments on commit 25c6ce7

Please sign in to comment.