File tree 3 files changed +8
-14
lines changed
3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,8 @@ use target::Target;
12
12
13
13
pub fn target ( ) -> Target {
14
14
let mut base = super :: apple_base:: opts ( ) ;
15
-
16
- // Use yonah as default CPU to enable SSE[2] instructions.
17
- // Clang defaults to i686 for this target, but defaulting to yonah
18
- // is consistent with what Clang does for i386-apple-darwin.
19
- base. cpu = "yonah" . to_string ( ) ;
15
+ // Use i686 as default CPU. Clang uses the same default.
16
+ base. cpu = "i686" . to_string ( ) ;
20
17
21
18
base. pre_link_args . push ( "-m32" . to_string ( ) ) ;
22
19
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ use target::Target;
13
13
pub fn target ( ) -> Target {
14
14
let mut base = super :: android_base:: opts ( ) ;
15
15
16
- // Use pentium4 as default CPU to enable SSE[2] instructions.
17
- // Clang defaults to i686 and enables SSSE3 for this target, but
18
- // defaulting to pentium4 is consistent with linux and windows
19
- // targets.
20
- base. cpu = "pentium4" . to_string ( ) ;
16
+ // Use i686 as default CPU and enable SSSE3.
17
+ // Clang and GCC do the same.
18
+ base. cpu = "i686" . to_string ( ) ;
19
+ base. features = "+ssse3" . to_string ( ) ;
21
20
22
21
Target {
23
22
llvm_target : "i686-linux-android" . to_string ( ) ,
Original file line number Diff line number Diff line change @@ -13,10 +13,8 @@ use target::Target;
13
13
pub fn target ( ) -> Target {
14
14
let mut base = super :: freebsd_base:: opts ( ) ;
15
15
16
- // Use pentium4 as default CPU to enable SSE[2] instructions.
17
- // Clang defaults to i486 for this target, but defaulting to
18
- // pentium4 is consistent with linux and windows targets.
19
- base. cpu = "pentium4" . to_string ( ) ;
16
+ // Use i486 as default CPU. Clang uses the same default.
17
+ base. cpu = "i486" . to_string ( ) ;
20
18
21
19
base. pre_link_args . push ( "-m32" . to_string ( ) ) ;
22
20
You can’t perform that action at this time.
0 commit comments