Skip to content

Commit 65b8041

Browse files
committed
Merge pull request #135 from ratkins/patch-1
Add extra steps for macOS, as noted in #131
1 parent 17839c7 commit 65b8041

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ First make sure you've installed all dependencies for building, as specified in
2525
the main Rust repository [here](https://github.com/rust-lang/rust/#building-from-source).
2626
Then use the following commands:
2727

28+
### Notes for macOS
29+
30+
The conventional install directory for macOS is `/usr/local/avr-rust` rather than the Linux default `/opt/avr-rust`, so before the steps below, you must:
31+
32+
1. Edit `build/config.toml` to set `prefix = '/usr/local/avr-rust'`.
33+
2. Ensure `/usr/local/avr-rust` exists and has the correct permissions: `sudo mkdir /usr/local/avr-rust && sudo chown $USER:admin /usr/local/avr-rust`
34+
35+
Finally, `realpath` isn't included by default on macOS but is included in GNU Coreutils, so you can either `brew install coreutils` so the `rustup toolchain...` step works properly, or just use the explicit path (`rustup toolchain link avr-toolchain /usr/local/avr-rust`).
36+
2837
``` bash
2938
# Grab the avr-rust sources
3039
git clone https://github.com/avr-rust/rust.git

0 commit comments

Comments
 (0)