Skip to content

Commit 66e3669

Browse files
committed
well.. everything is in the TARGET_SPECS const from its compilation so, let us just use that.
1 parent 9ff91d7 commit 66e3669

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/cargo-gpu/src/show.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ impl Show {
6767
}
6868
}
6969
Info::Targets => {
70-
for t in Self::available_spirv_targets_iter() {
71-
println!("{}", t);
70+
for target in Self::available_spirv_targets_iter() {
71+
println!("{target}");
7272
}
7373
}
7474
}
@@ -85,6 +85,7 @@ impl Show {
8585
(0..=last_capability).filter_map(spirv_builder::Capability::from_u32)
8686
}
8787

88+
/// All supported spirv targets at the time cargo-gpu was compiled.
8889
fn available_spirv_targets_iter() -> impl Iterator<Item = String> {
8990
legacy_target_specs::TARGET_SPECS
9091
.iter()

0 commit comments

Comments
 (0)