Skip to content

Commit 1f86005

Browse files
committed
Use "x86-64" as the target CPU for NetBSD and Bitrig on amd64.
Using "generic" disables a number of features that are present on all x86_64 cpus, the "x86-64" target cpu is the common denominator for that arch. Refs #20777
1 parent 9316ae5 commit 1f86005

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/librustc_back/target/x86_64_rumprun_netbsd.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::netbsd_base::opts();
15+
base.cpu = "x86-64".to_string();
1516
base.pre_link_args.push("-m64".to_string());
1617
base.linker = "x86_64-rumprun-netbsd-gcc".to_string();
1718
base.ar = "x86_64-rumprun-netbsd-ar".to_string();

src/librustc_back/target/x86_64_unknown_bitrig.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::bitrig_base::opts();
15+
base.cpu = "x86-64".to_string();
1516
base.max_atomic_width = 64;
1617
base.pre_link_args.push("-m64".to_string());
1718

src/librustc_back/target/x86_64_unknown_netbsd.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::netbsd_base::opts();
15+
base.cpu = "x86-64".to_string();
1516
base.max_atomic_width = 64;
1617
base.pre_link_args.push("-m64".to_string());
1718

0 commit comments

Comments
 (0)