about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-05-01 15:25:26 -0700
committerJosh Stone <jistone@redhat.com>2024-05-01 15:25:26 -0700
commit706f06c39a9e08a4708a53722429d13ae4069c2f (patch)
tree82f343edc69b5ada89e685e12a5fc29570b7903d /tests/codegen
parentbe9bca2daf929c4472abd8fbbb94b00f82481f07 (diff)
downloadrust-706f06c39a9e08a4708a53722429d13ae4069c2f.tar.gz
rust-706f06c39a9e08a4708a53722429d13ae4069c2f.zip
Use an explicit x86-64 cpu in tests that are sensitive to it
There are a few tests that depend on some target features **not** being
enabled by default, and usually they are correct with the default x86-64
target CPU. However, in downstream builds we have modified the default
to fit our distros -- `x86-64-v2` in RHEL 9 and `x86-64-v3` in RHEL 10
-- and the latter especially trips tests that expect not to have AVX.

These cases are few enough that we can just set them back explicitly.
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/target-feature-inline-closure.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/target-feature-inline-closure.rs b/tests/codegen/target-feature-inline-closure.rs
index 88bd413a870..20bb4e66ff2 100644
--- a/tests/codegen/target-feature-inline-closure.rs
+++ b/tests/codegen/target-feature-inline-closure.rs
@@ -1,5 +1,5 @@
 //@ only-x86_64
-//@ compile-flags: -Copt-level=3
+//@ compile-flags: -Copt-level=3 -Ctarget-cpu=x86-64
 
 #![crate_type = "lib"]
 #![feature(target_feature_11)]