Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mandrean/0194f6a05727161db74da1d6fffc075b to your computer and use it in GitHub Desktop.
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)
# 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
@mandrean
Copy link
Author

You're welcome!

@troian
Copy link

troian commented Dec 4, 2022

this is brilliant, thank you!

@vanvught
Copy link

vanvught commented Dec 5, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment