Add macOS release build target
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>
This commit is contained in:
@@ -35,8 +35,12 @@ Based on XMRig v6.25.
|
||||
```
|
||||
./build.sh --linux-release # Linux x86_64 static release
|
||||
./build.sh --win-release # Windows x86_64 (MinGW cross-compile)
|
||||
./build.sh --macos-release # macOS release for the host arch (Intel or Apple Silicon)
|
||||
```
|
||||
Dependencies are built by `scripts/build_deps.sh` on first run.
|
||||
Linux/Windows dependencies are built by `scripts/build_deps.sh` on first run.
|
||||
The macOS build uses Homebrew dependencies — install them once with
|
||||
`brew install libuv hwloc openssl@3`. libuv/hwloc/OpenSSL are linked statically,
|
||||
so the resulting binary runs on stock macOS without Homebrew.
|
||||
|
||||
## Usage
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user