Skip to content

Conversation

grendello
Copy link
Contributor

The code detecting whether an instance of NDK is a 64-bit one assumed
that the GNU binutils paths existed below the toolchains dir and used
them to check whether the 64-bit platform directory exists under them in
order to determine if the NDK is a 64-bit one. NDK r23, however, will
remove the GNU binutils completely and those paths no longer exist.

Add a check for the toolchains/llvm/prebuilt/[PLATFORM] directory
existence before the older check so that detection works correctly for
NDK r23+.

The code detecting whether an instance of NDK is a 64-bit one assumed
that the GNU binutils paths existed below the toolchains dir and used
them to check whether the 64-bit platform directory exists under them in
order to determine if the NDK is a 64-bit one.  NDK r23, however, will
remove the GNU binutils completely and those paths no longer exist.

Add a check for the `toolchains/llvm/prebuilt/[PLATFORM]` directory
existence before the older check so that detection works correctly for
NDK r23+.
@grendello grendello merged commit 9b658b2 into main Aug 23, 2021
@grendello grendello deleted the ndk-r23 branch August 23, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants