Function ndk_compiler

Source
pub(crate) fn ndk_compiler(
    compiler: Language,
    triple: &str,
    ndk: &Path,
) -> PathBuf
Expand description

Constructs the path to the Android NDK compiler for the given target triple and language.

This helper function transform the target triple by converting certain architecture names (for example, translating “arm” to “arm7a”), appends the minimum API level (hardcoded as “21” for NDK r26d), and then constructs the full path based on the provided NDK directory and host platform.