Previously, RustAndroidPlugin would read the
NDK version from source.properties in the NDK
path, while CargoBuildTask would try to infer
the NDK version from the pathname.
Inferring the NDK version from the pathname would
fail if the pathname didn't contain the version
(e.g., Mach currently installs the NDK used to
build Firefox for Android into
~/.mozbuild/android-ndk-r26c), causing
Toolchain to return the wrong path to ar for
new NDK versions.
Previously,
RustAndroidPlugin
would read the NDK version fromsource.properties
in the NDK path, whileCargoBuildTask
would try to infer the NDK version from the pathname.Inferring the NDK version from the pathname would fail if the pathname didn't contain the version (e.g., Mach currently installs the NDK used to build Firefox for Android into
~/.mozbuild/android-ndk-r26c
), causingToolchain
to return the wrong path toar
for new NDK versions.