Skip to content

Commit

Permalink
_build.sh: fixup machine arch name for macOS [ci skip]
Browse files Browse the repository at this point in the history
`uname -m` returns `arm64` on macOS ARM64 (not `aarch64`). These scripts
expect `aarch64` (universally on all platforms). Instead of tweaking all
of those to `arm64` for macOS, rewrite the detected value to `aarch64`.

Host triplets seems to work with the latter also.

This fixes to actually run the ARM64 curl binary on ARM64 machines.
  • Loading branch information
vszakats committed Apr 25, 2024
1 parent 8025fc0 commit 7c9a44e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ export ZIP=

unamem="$(uname -m)"

# for macOS ARM64 hosts
if [ "${unamem}" = 'arm64' ]; then
unamem='aarch64'
fi

readonly _LOG='logurl.txt'
readonly _SELF='curl-for-win'
if [ -n "${APPVEYOR_ACCOUNT_NAME:-}" ]; then
Expand Down

0 comments on commit 7c9a44e

Please sign in to comment.