Skip to content

Commit d80ce21

Browse files
committed
Normalize target-cpus.rs stdout test for LLVM changes
1 parent 0e98766 commit d80ce21

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: src/tools/compiletest/src/directive-list.rs

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
163163
"normalize-stderr-32bit",
164164
"normalize-stderr-64bit",
165165
"normalize-stderr-test",
166+
"normalize-stdout",
166167
"normalize-stdout-test",
167168
"only-16bit",
168169
"only-32bit",

Diff for: tests/ui/codegen/target-cpus.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
//@ needs-llvm-components: webassembly
22
//@ compile-flags: --print=target-cpus --target=wasm32-unknown-unknown
33
//@ check-pass
4+
5+
// LLVM at HEAD has added support for the `lime1` CPU. Remove it from the
6+
// output so that the stdout with LLVM-at-HEAD matches the output of the LLVM
7+
// versions currently used by default.
8+
// FIXME: Once Rust upgrades to LLVM 20, remove this.
9+
//@ normalize-stdout-test: "(?m)^ *lime1\n" -> ""

0 commit comments

Comments
 (0)