Skip to content

Commit 9900373

Browse files
authored
Use clang when cross-compiling to iOS targets (#577)
* Use clang when cross-compiling to iOS targets * Use apple-ios instead of ios as the search string.
1 parent f261cb7 commit 9900373

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,8 @@ impl Build {
20442044
} else {
20452045
format!("{}.exe", gnu)
20462046
}
2047+
} else if target.contains("apple-ios") {
2048+
clang.to_string()
20472049
} else if target.contains("android") {
20482050
autodetect_android_compiler(&target, &host, gnu, clang)
20492051
} else if target.contains("cloudabi") {

0 commit comments

Comments
 (0)