Skip to content

Commit

Permalink
Revert "fix: always prefer glibc to musl in mise run (#3261)" (#3298)
Browse files Browse the repository at this point in the history
This reverts commit 3860e95.

Fixes #1716
  • Loading branch information
jdx authored Nov 29, 2024
1 parent f8fc242 commit 2c136a3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packaging/standalone/install.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ get_os() {

get_arch() {
musl=""
if [ "${MISE_GLIBC-}" = "1" ]; then
musl=""
elif [ "$(get_os)" = "linux" ]; then
musl="-musl"
fi
if type ldd >/dev/null 2>/dev/null; then
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -n "$libc" ]; then
musl="-musl"
fi
fi
arch="$(uname -m)"
if [ "$arch" = x86_64 ]; then
echo "x64$musl"
Expand Down

0 comments on commit 2c136a3

Please sign in to comment.