Skip to content

Commit

Permalink
expand musl-cross bullet point
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Savintsev <[email protected]>
  • Loading branch information
dmitris committed Aug 3, 2023
1 parent 97a7328 commit 1c06213
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/book/aya/crosscompile.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,21 @@ rustup target add ${ARCH}-unknown-linux-musl
brew install llvm
```

1. Install the musl cross compiler:
1. Install the musl cross compiler:
to cross-compile for only `x86_64` targets (the default in musl-cross):
```bash
brew install FiloSottile/musl-cross/musl-cross
```
to cross-compile for only `aarch64` targets:
```bash
brew install FiloSottile/musl-cross/musl-cross --without-x86_64 --with-aarch64
```
to cross-compile for both `x86_64` and `aarch64` targets:
```bash
brew install FiloSottile/musl-cross/musl-cross --with-aarch64
```
See [homebrew-musl-cross](https://github.com/FiloSottile/homebrew-musl-cross)
for platform-specific options.
for additional platform-specific options.

1. Install bpf-linker:
```bash
Expand Down

0 comments on commit 1c06213

Please sign in to comment.