Skip to content

Commit

Permalink
Rollup merge of #82965 - XAMPPRocky:spv-ext, r=nagisa
Browse files Browse the repository at this point in the history
Add spirv extension handling in compiletest

We're trying to use `compiletest` for Rust-GPU's testsuite, and ran into an issue with host specific extensions. This adds handling to fix that.
  • Loading branch information
JohnTitor authored Mar 11, 2021
2 parents 16ce4f7 + a6624d3 commit bb790d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,8 @@ impl<'test> TestCx<'test> {
f = f.with_extra_extension("js");
} else if self.config.target.contains("wasm32") {
f = f.with_extra_extension("wasm");
} else if self.config.target.contains("spirv") {
f = f.with_extra_extension("spv");
} else if !env::consts::EXE_SUFFIX.is_empty() {
f = f.with_extra_extension(env::consts::EXE_SUFFIX);
}
Expand Down

0 comments on commit bb790d3

Please sign in to comment.