Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more stringent about handling Android NDK.
Wrapper scripts for the NDK have the format <target>-<clang>, so when checking to see if the filename contains "android" (which will be part of the target), split off the target part of the filename and only check that, instead of checking the entire filename. This is a very minor improvement, but it is more correct and does have a practical benefit for us on the Android toolchain team: Our build process for rustc uses wrapper scripts that include the target in their name, and the cc crate is misidentifying them as being from the NDK and causing our Windows build to fail without a workaround.
- Loading branch information