diff --git a/bin/node-build b/bin/node-build index 8488aa720..3020e4f12 100755 --- a/bin/node-build +++ b/bin/node-build @@ -171,6 +171,11 @@ num_cpu_cores() { echo "${num:-2}" } +system_is_muslc() { + # Implicit return + ldd /bin/sh | grep -qw musl +} + platform() { local arch os distro @@ -181,6 +186,10 @@ platform() { i[36]86* | [ix]86pc ) arch=x86 ;; esac + if system_is_muslc; then + arch="$arch-musl" + fi + os="$(uname -s | tr '[:upper:]' '[:lower:]')" if type -p lsb_release >/dev/null; then