-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arduino-cli core install should install binary tools matching the architecture of the system it is run on #1838
Comments
Hi @imrehorvath. Thanks for your request. Arduino CLI already does pick the best match of the available variants of the tool for the host architecture. If the package maintainer has produced a build for the exact architecture of the host then that will be used. If not, it will use a compatible variant. The reason you get tools built for macOS x86-64 is because none are available for Apple M1 architecture. If such tool builds are produced, they will start being used without any change in Arduino CLI. Until then, it is better to use the x86-64 variants, which are perfectly compatible with Apple M1 machines courtesy of Rosetta 2. You can see the tool selection code here: arduino-cli/arduino/cores/tools.go Lines 126 to 213 in 9fe8560
|
Describe the request
It would be required that the commands like:
arduino-cli core install arduino:avr
installs the binary tools in the core for the architecture of the system it is executed on. Eg. the bundled binary gcc in the core should be built for arm64 on Apple silicon Macs and not Intel x86_64.Describe the current behavior
Currently the
arduino-cli core install arduino:avr
command installs binary tools pre-built for Intel x86_64 on Apple silicon Macs.Arduino CLI version
0.26.0
Operating system
macOS
Operating system version
macOS Monterey 12.5
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: