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 7600799 commit 5bef1f2Copy full SHA for 5bef1f2
src/lib.rs
@@ -1414,7 +1414,7 @@ impl Build {
1414
cmd.push_opt_unless_duplicate("-DANDROID".into());
1415
}
1416
1417
- if !target.contains("-ios") {
+ if !target.contains("apple-ios") {
1418
cmd.push_cc_arg("-ffunction-sections".into());
1419
cmd.push_cc_arg("-fdata-sections".into());
1420
@@ -1693,9 +1693,7 @@ impl Build {
1693
1694
1695
1696
- if target.contains("-ios") {
1697
- // FIXME: potential bug. iOS is always compiled with Clang, but Gcc compiler may be
1698
- // detected instead.
+ if target.contains("apple-ios") {
1699
self.ios_flags(cmd)?;
1700
1701
0 commit comments