Skip to content

Commit fb06f5e

Browse files
committed
fix unit test for is_like_gpu
1 parent aa4dee6 commit fb06f5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_target/src/spec

compiler/rustc_target/src/spec/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,8 +2918,8 @@ impl Target {
29182918
);
29192919
check_eq!(
29202920
self.is_like_gpu,
2921-
self.arch == Arch::Nvptx64 || self.arch == Arch::AmdGpu,
2922-
"`is_like_gpu` must be set if and only if `target` is `nvptx64` or `amdgcn`"
2921+
self.arch == Arch::Nvptx64 || self.arch == Arch::AmdGpu || self.arch == Arch::SpirV,
2922+
"`is_like_gpu` must be set if and only if `target` is `nvptx64` or `amdgcn` or `spirv`"
29232923
);
29242924
check_eq!(
29252925
self.is_like_windows,

0 commit comments

Comments
 (0)