Skip to content

[FR] improve fallback behavior of ndk-which when triple-prefixed tools are not found #1593

Closed
@Hsilgos

Description

@Hsilgos

Description

Currently we switch from 21.4.7075529 to 23.0.7599858 and found an issue.
In our build script we use ndk-which utility to find readelf.
In NDK 23 it stopped to show any result.

Step to reproduce:
Run ~/AndroidSDK/ndk/23.0.7599858/ndk-which --abi x86_64 readelf
Expected result: Full path to readelf utility.
Actual result: empty output.

Details:
After small debugging it's clear that ndk-which is trying path ~/AndroidSDK/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android-readelf which doesn't exist in NDK anymore.
Either this binary should be returned back or ndk-which must try path ~/AndroidSDK/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-readelf instead.

Environment Details

  • NDK Version: 23.0.7599858
  • Host OS: Mac (may be other OSes)
  • ABI: Any

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions