Last active
March 31, 2024 14:29
-
-
Save mandrean/0194f6a05727161db74da1d6fffc075b to your computer and use it in GitHub Desktop.
Install xPack GNU Arm Embedded GCC toolchain on Apple M1 Silicon (aarch64 / arm64)
This file contains 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
# Install xpm using npm | |
$ npm install --global xpm@latest | |
# Install xPack distribution of Arm toolchain with Apple M1 Silicon support | |
$ xpm install @xpack-dev-tools/[email protected] | |
# Add Arm toolchain binaries to PATH in your .bashrc or .zshrc | |
$ echo 'export PATH="$HOME/Library/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.3.1-2.3.1/.content/bin:$PATH"' >> ~/.bashrc | |
$ source ~/.bashrc | |
# Verify we have 'arm-none-eabi-gcc' on PATH | |
$ arm-none-eabi-gcc --version | |
arm-none-eabi-gcc (xPack GNU Arm Embedded GCC arm64) 10.3.1 20210824 (release) | |
# Verify 'arm-none-eabi-gcc' is a native arm64 binary | |
$ file `which arm-none-eabi-gcc` | |
~/Library/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.3.1-2.3.1/.content/bin/arm-none-eabi-gcc: | |
Mach-O 64-bit executable arm64 |
this is brilliant, thank you!
Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're welcome!