Skip to content
Permalink
Browse files

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.
  • Loading branch information...
dotdash committed Jan 26, 2015
1 parent bca25ae commit 296c74de96e2ca78289ee0a127cca3b7e58af734
@@ -12,6 +12,7 @@ use target::Target;

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

// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
// space available to x86 Windows binaries on x86_64.
@@ -12,6 +12,7 @@ use target::Target;

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

Target {
@@ -12,6 +12,7 @@ use target::Target;

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

Target {

0 comments on commit 296c74d

Please sign in to comment.
You can’t perform that action at this time.