Skip to content

Commit 6a7ed8f

Browse files
committed
i686-linux-android: set -mcpu to pentium4.
To allow SSE2 to be used.
1 parent a1b2deb commit 6a7ed8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_back/target/i686_linux_android.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
use target::Target;
1212

1313
pub fn target() -> Target {
14+
let mut base = super::android_base::opts();
15+
base.cpu = "pentium4".to_string();
16+
1417
Target {
1518
llvm_target: "i686-linux-android".to_string(),
1619
target_endian: "little".to_string(),
1720
target_pointer_width: "32".to_string(),
1821
arch: "x86".to_string(),
1922
target_os: "android".to_string(),
2023
target_env: "gnu".to_string(),
21-
options: super::android_base::opts(),
24+
options: base,
2225
}
2326
}

0 commit comments

Comments
 (0)