-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announce an impending update the Android NDK target
- Loading branch information
1 parent
60bfdfa
commit e0f63f1
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
layout: post | ||
title: "Updating the Android NDK in Rust <version>" | ||
author: Android Platform Team | ||
description: "Modernizing Android support in Rust" | ||
--- | ||
|
||
We are pleased to announce that Android platform support in Rust will be | ||
modernized in Rust <version> as we update the target NDK from r17 to r25. As a | ||
consequence the minimum supported API level will increase from 15 (Ice Cream | ||
Sandwich) to 19 (KitKat). | ||
|
||
In NDK r23 Android switched to using LLVM's `libunwind` for all architectures. | ||
This meant that | ||
1. If a project were to target NDK r23 or newer with previous versions of Rust | ||
[a workaround](https://github.com/rust-lang/rust/pull/85806#issuecomment-1096266946) | ||
would be required to redirect attempts to link against `libgcc` to instead | ||
link against `libunwind`. Following this update this workaround will no | ||
longer be necessary. | ||
2. If a project targets NDK r22 or older it will need to be updated to target | ||
r23 or newer. | ||
|
||
Going forward the Android platform will target the most recent LTS NDK, allowing | ||
Rust developers to access platform features sooner. | ||
|