You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,15 @@ First make sure you've installed all dependencies for building, as specified in
25
25
the main Rust repository [here](https://github.com/rust-lang/rust/#building-from-source).
26
26
Then use the following commands:
27
27
28
+
### Notes for macOS
29
+
30
+
The correct 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 need to `brew install coreutils` so the `rustup toolchain...` step works properly.
0 commit comments