Skip to content

Conversation

@tridge
Copy link
Contributor

@tridge tridge commented Dec 24, 2025

This fixes the install script for MacOS to work on recent Apple Silicon machines.
Tested on a 2024 Mac Mini running MacOS 25.1

On Apple Silicon Macs, Homebrew installs to /opt/homebrew instead of
/usr/local. This commit:
- Detects HOMEBREW_PREFIX using 'brew --prefix'
- Uses HOMEBREW_PREFIX for ccache paths instead of hardcoded /usr/local
- Checks if /usr/local/bin exists before running find command to delete
  Python framework symlinks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@timtuxworth
Copy link
Contributor

timtuxworth commented Dec 24, 2025

Why not use homebrew to install the ARM executables. I haven't tried this (it wasn't available when got my Mac), but it is now.

brew install --cask gcc-arm-embedded

@tridge
Copy link
Contributor Author

tridge commented Dec 29, 2025

Why not use homebrew to install the ARM executables.

you're welcome to try it, this PR is just the minimal change that allows the install to work

@timtuxworth
Copy link
Contributor

Does AP build and run in SITL with this configuration @tridge ? Just wondering if you see the same problem I see in #31736

Copy link
Contributor

@andyp1per andyp1per left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterbarker peterbarker merged commit 897b4b3 into ArduPilot:master Jan 7, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants