Skip to content

Commit 329d3fe

Browse files
committed
compiletest: fix parsing for target envs with -
1 parent bfe6c6a commit 329d3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compiletests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Runner {
140140
.environments()
141141
.flat_map(|target| VARIATIONS.iter().map(move |variation| (target, variation)))
142142
{
143-
let target = if target.contains("-") {
143+
let target = if target.starts_with("spirv-unknown-") {
144144
SpirvTargetEnv::parse_triple(target)
145145
} else {
146146
SpirvTargetEnv::parse_triple(&format!("spirv-unknown-{target}"))

0 commit comments

Comments
 (0)