Skip to content

Export detected NDK version in ndk-env#207

Merged
bbqsrc merged 1 commit into
bbqsrc:mainfrom
StantonMatt:export-ndk-version
Jun 3, 2026
Merged

Export detected NDK version in ndk-env#207
bbqsrc merged 1 commit into
bbqsrc:mainfrom
StantonMatt:export-ndk-version

Conversation

@StantonMatt

@StantonMatt StantonMatt commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #192.

This exposes the already parsed Android NDK revision through the generated cargo ndk-env environment output as CARGO_NDK_NDK_VERSION, so shell, PowerShell, and JSON consumers can read the detected revision without parsing the NDK path.

I also documented the new variable in the README and extended the existing build_env export test.

Verification:

  • cargo fmt --all -- --check
  • cargo test cargo::tests --locked
  • cargo test --locked
  • cargo clippy -- -D warnings
  • git diff --check

Signed-off-by: Matthew Stanton <stantonmatthewj@gmail.com>
@bbqsrc bbqsrc merged commit 00800b7 into bbqsrc:main Jun 3, 2026
18 checks passed
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.

Print NDK revision

2 participants