Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 329d3fe

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /