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
{{ message }}
This repository was archived by the owner on Dec 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/osx_cross_compile.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,28 @@
1
-
# macOS Installation Guide for Cross-Compilation to aarch64-unknown-linux-musl
1
+
# macOS Guide for Zinit
2
2
3
-
This guide outlines the steps to set up your macOS environment for cross-compiling Rust projects to the `aarch64-unknown-linux-musl` target. This is particularly useful for building binaries that can run on ARM-based Linux systems (e.g., Raspberry Pi, AWS Graviton) using musl libc.
3
+
This guide covers both building Zinit natively on macOS and cross-compiling from macOS to Linux targets.
4
+
5
+
## Building Zinit Natively on macOS
6
+
7
+
Zinit can now be built and run directly on macOS. The code has been updated to handle platform-specific differences between Linux and macOS.
8
+
9
+
### Building for macOS
10
+
11
+
```bash
12
+
# Build a release version for macOS
13
+
make release-macos
14
+
15
+
# Install to ~/hero/bin (if it exists)
16
+
make install-macos
17
+
```
18
+
19
+
The native macOS build provides most of Zinit's functionality, with the following limitations:
20
+
- System reboot and shutdown operations are not supported (they will exit the process instead)
21
+
- Some Linux-specific features are disabled
22
+
23
+
## Cross-Compilation from macOS to Linux
24
+
25
+
This section outlines the steps to set up your macOS environment for cross-compiling Rust projects to the `aarch64-unknown-linux-musl` target. This is particularly useful for building binaries that can run on ARM-based Linux systems (e.g., Raspberry Pi, AWS Graviton) using musl libc.
0 commit comments