From 24448ebec21f2c925accc9bc240c008de60ff91e Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 20 Aug 2026 11:39:36 +0200 Subject: [PATCH] chore(mac): put coreutils on path on mac and improve docs Ensure realpath and other coreutils tools we need are on the path when called from build.sh. And tweak documentation around Emscripten. Test-bot: skip --- docs/build/macos.md | 4 ++-- resources/build/builder-basic.inc.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/build/macos.md b/docs/build/macos.md index 99d6d9997e..b9f64c3856 100644 --- a/docs/build/macos.md +++ b/docs/build/macos.md @@ -127,8 +127,8 @@ To install emscripten, `cd` to an appropriate path, and then: ```bash git clone https://github.com/emscripten-core/emsdk cd emsdk -emsdk install 3.1.58 -emsdk activate 3.1.58 +./emsdk install 3.1.64 +./emsdk activate 3.1.64 cd upstream/emscripten npm install export EMSCRIPTEN_BASE="$(pwd)" diff --git a/resources/build/builder-basic.inc.sh b/resources/build/builder-basic.inc.sh index c3108ede0e..f016b3dc1e 100644 --- a/resources/build/builder-basic.inc.sh +++ b/resources/build/builder-basic.inc.sh @@ -309,3 +309,11 @@ _builder_basic_find_should_sentry_release # correct version # _builder_basic_set_keyman_standard_build_path + +if builder_is_macos; then + if [[ -z "${HOMEBREW_PREFIX+x}" ]]; then + HOMEBREW_PREFIX=`brew --prefix` + fi + + export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH" +fi