Skip to content

Commit d3fa73e

Browse files
committed
chore: don’t generate ptx on build.rs
1 parent f709a7e commit d3fa73e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ use std::path::PathBuf;
33
use std::str::FromStr;
44

55
pub fn main() {
6-
// println!("cargo:rerun-if-changed=build.rs");
76
let slang = SlangCompiler::new(vec![PathBuf::from_str("./shaders").unwrap()]);
87

98
let targets = [
109
CompileTarget::Wgsl,
1110
#[cfg(feature = "cuda")]
12-
CompileTarget::Ptx,
13-
#[cfg(feature = "cuda")]
1411
CompileTarget::CudaSource,
1512
];
1613

1714
for target in targets {
1815
slang.compile_all(target, "../shaders", "./src/autogen", &[]);
1916
}
2017
}
18+

0 commit comments

Comments
 (0)