Add `./build.sh --macos-release`, producing a portable host-arch macOS binary (Intel x86_64 or Apple Silicon arm64). libuv, hwloc, and OpenSSL are linked statically from Homebrew so the result runs on stock macOS without Homebrew at runtime. Homebrew's static libhwloc.a is built with the libxml2 and OpenCL topology plugins, so the link adds `-lxml2 -framework OpenCL` (both ship with macOS). Brew prefixes are resolved via `brew --prefix`, so the same target works on Intel (/usr/local) and Apple Silicon (/opt/homebrew); the package is named by `uname -m`. Also document the macOS build in README and ignore build-macos/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5.9 KiB
Executable File
5.9 KiB
Executable File