Skip to content

Commit 56a5f55

Browse files
committed
Handle uname -m returning arm64
1 parent 3e58c7a commit 56a5f55

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/_developer_onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Prerequisites:
132132
```
133133
* Install the Android Rust toolchain for your machine's hardware:
134134
```
135-
rustup target add `uname -m`-linux-android
135+
rustup target add aarch64-linux-android x86_64-linux-android
136136
```
137137
* Depending on the location of the Android SDK, you may need to set
138138
`ANDROID_HOME`:

tools/sdk/build_rust_sdk.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ buildApp=${buildApp:-no}
6060
cd "${elementPwd}"
6161

6262
default_arch="$(uname -m)-linux-android"
63+
# On ARM MacOS, `uname -m` returns arm64, but the toolchain is called aarch64
64+
default_arch="${default_arch/arm64/aarch64}"
65+
6366
read -p "Enter the architecture you want to build for (default '$default_arch'): " target_arch
6467
target_arch="${target_arch:-${default_arch}}"
6568

0 commit comments

Comments
 (0)