Skip to content

Add cross-platform NDK repository support#122

Open
UebelAndre wants to merge 1 commit intobazelbuild:mainfrom
UebelAndre:toolchain
Open

Add cross-platform NDK repository support#122
UebelAndre wants to merge 1 commit intobazelbuild:mainfrom
UebelAndre:toolchain

Conversation

@UebelAndre
Copy link

This change enables workflows where the host Bazel platform differs from the exec platforms via remote execution. When creating a local_repository to an NDK for another platform, the repository rules are now flexible and platform-agnostic enough to support correctly matching foreign exec platforms if explicitly specified.

android_ndk_repository(
    name = "android_ndk_linux",
    anchor = "@local_android_ndk_linux//:BUILD.bazel",
    api_level = 21,
    platform = "linux-x86_64",
    clang_resource_dir = "linux/specific/dir",
)

@UebelAndre UebelAndre force-pushed the toolchain branch 5 times, most recently from eaafff8 to 4ab8198 Compare February 28, 2026 05:36
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.

1 participant