Skip to content

Commit 296c74d

Browse files
committed
Default to Pentium 4 as the x86 target CPU on Windows/Linux/DragonFly
Limiting ourselves to a generic x86 instruction set doesn't seem useful. Both users running those systems on original i386 hardware might as well manually specify a target cpu ;-) Clang uses the same default.
1 parent bca25ae commit 296c74d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/librustc_back/target/i686_pc_windows_gnu.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use target::Target;
1212

1313
pub fn target() -> Target {
1414
let mut options = super::windows_base::opts();
15+
options.cpu = "pentium4".to_string();
1516

1617
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
1718
// space available to x86 Windows binaries on x86_64.

src/librustc_back/target/i686_unknown_dragonfly.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use target::Target;
1212

1313
pub fn target() -> Target {
1414
let mut base = super::dragonfly_base::opts();
15+
base.cpu = "pentium4".to_string();
1516
base.pre_link_args.push("-m32".to_string());
1617

1718
Target {

src/librustc_back/target/i686_unknown_linux_gnu.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use target::Target;
1212

1313
pub fn target() -> Target {
1414
let mut base = super::linux_base::opts();
15+
base.cpu = "pentium4".to_string();
1516
base.pre_link_args.push("-m32".to_string());
1617

1718
Target {

0 commit comments

Comments
 (0)