We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6efea commit 913e2b4Copy full SHA for 913e2b4
src/lib.rs
@@ -3616,8 +3616,8 @@ static NEW_STANDALONE_ANDROID_COMPILERS: [&str; 4] = [
3616
fn android_clang_compiler_uses_target_arg_internally(clang_path: &Path) -> bool {
3617
if let Some(filename) = clang_path.file_name() {
3618
if let Some(filename_str) = filename.to_str() {
3619
- if let Some((target, _)) = filename_str.rsplit_once("-") {
3620
- return target.contains("android");
+ if let Some(idx) = filename_str.rfind("-") {
+ return filename_str.split_at(idx).0.contains("android");
3621
}
3622
3623
0 commit comments