Skip to content

Commit 5bef1f2

Browse files
authored
Replace -ios with apple-ios (#579)
1 parent 7600799 commit 5bef1f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ impl Build {
14141414
cmd.push_opt_unless_duplicate("-DANDROID".into());
14151415
}
14161416

1417-
if !target.contains("-ios") {
1417+
if !target.contains("apple-ios") {
14181418
cmd.push_cc_arg("-ffunction-sections".into());
14191419
cmd.push_cc_arg("-fdata-sections".into());
14201420
}
@@ -1693,9 +1693,7 @@ impl Build {
16931693
}
16941694
}
16951695

1696-
if target.contains("-ios") {
1697-
// FIXME: potential bug. iOS is always compiled with Clang, but Gcc compiler may be
1698-
// detected instead.
1696+
if target.contains("apple-ios") {
16991697
self.ios_flags(cmd)?;
17001698
}
17011699

0 commit comments

Comments
 (0)