Skip to content

Commit 00a6ff9

Browse files
committed
Adjusting default CPUs for iOS
According to @dotdash it enables more aggressive optimizations from LLVM
1 parent c34421e commit 00a6ff9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_back/target/apple_ios_base.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ fn pre_link_args(arch: Arch) -> Vec<String> {
7373

7474
fn target_cpu(arch: Arch) -> String {
7575
match arch {
76+
Armv7 => "cortex-a8", // iOS7 is supported on iPhone 4 and higher
77+
Armv7s => "cortex-a9",
78+
Arm64 => "cyclone",
79+
I386 => "generic",
7680
X86_64 => "x86-64",
77-
_ => "generic",
7881
}.to_string()
7982
}
8083

0 commit comments

Comments
 (0)