-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ndk-build: Support NDK r22 #94
Conversation
Clippy attained a new lint, manual_strip [1]. It won't find these nested cases, but we can still introduce .strip_prefix() regardless and make the code ever so slightly more readable :) [1]: https://rust-lang.github.io/rust-clippy/master/#manual_strip
This folder has been deprecated since r19 and finally disappeared in r22: r21 changelog, https://github.com/android/ndk/wiki/Changelog-r22: The legacy toolchain install paths will be removed over the coming releases. These paths have been obsolete since NDK r19 and take up a considerable amount of space in the NDK. The paths being removed are: - platforms - [...] And removed in r22, https://github.com/android/ndk/wiki/Changelog-r22: The deprecated <NDK>/platforms and <NDK>/sysroot directories have been removed. These directories were merged and relocated into the toolchain during r19. [...] Since this path was never used in android-ndk-rs (`fn platform_dir` only ever returns "platforms" inside `sdk_path`) it is safe to remove.
I'm personally fine with it, as I'm using a copy of embarks github action 😄 |
@msiglreith You mean their |
I was referring to the linting parts: https://github.com/EmbarkStudios/opensource-template/blob/main/.github/workflows/rust-ci.yml#L8-L35 |
@msiglreith Right, I expected that after posting. That's the one I'm suggesting to add, but |
$ndk/platforms
is deprecated and finally removed in r22; android-ndk-rs was never using this so it's safe to remove.If NDK platform compatibility checking is still desired, we should check for
$ndk/toolchains/${toolchain:-llvm}/prebuilt/${host:-linux-x86_64}/sysroot/usr/lib/$triple/$api/
(Linux ndk, might differ on other platforms) instead.At the same time perform some minor code cleanup. How are the maintainers feeling about enabling
clippy
in the CI and fixing few remaining issues?