Add macOS (Apple Silicon) support#7
Open
cpandar wants to merge 2 commits into
Open
Conversation
New files:
- bootstrap_mac.sh: Homebrew-based bootstrap replacing apt-get; detects
Apple Silicon vs Intel for Elm binary download; no sudo required
- environment_mac.yaml: conda env with Linux-only packages removed and
pip packages bumped to versions with arm64 wheels
- setup_mac.sh: macOS setup aliases using /tmp/redis.sock instead of
/var/run/redis.sock (which requires root on macOS)
Makefile:
- Skip ldconfig (Linux-only) on macOS using uname conditional
- Exclude brand-nsp and cb_generator from macOS builds (Linux-only hardware)
setenv.mk:
- Add RPATH_PREFIX variable: Apple ld uses -Wl,-rpath, syntax while
GNU ld uses -Wl,-rpath= syntax
lib/python/brand/supervisor.py:
- Skip chrt (run_priority) and taskset (cpu_affinity) on macOS; log
warning if these parameters are set
lib/python/brand/redis.supervisor.conf:
- Change unix socket from /var/run/redis.sock to /tmp/redis.sock;
/var/run is not writable without root on macOS
lib/python/brand/timing.py:
- Replace hardcoded ctypes.CDLL('libc.so.6') with
ctypes.CDLL(ctypes.util.find_library('c')) for cross-platform compat
lib/redis:
- Update submodule pointer to include macOS arm64 build fixes
All changes are conditional on platform (uname or platform.system())
and do not affect Linux behaviour.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds macOS arm64 support including bootstrap_mac.sh, environment_mac.yaml, setup_mac.sh, Redis socket path fix (/tmp/redis.sock), real-time scheduling guards, and linker flag compatibility.