Skip to content

Commit a8cb7cf

Browse files
committed
Rework optix_stubs.c
The stubs were a copy of optix_stubs.h, but without `inline` so they end up in the binary when compiling them. This change instead includes optix_stubs.h and uses the preprocessor to erase `inline` in the header.
1 parent a21f4da commit a8cb7cf

File tree

2 files changed

+13
-591
lines changed

2 files changed

+13
-591
lines changed

crates/optix/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ fn main() {
2323

2424
bindgen_optix(&optix_include, &cuda_include);
2525

26+
println!("cargo:rerun-if-changed=optix_stubs.c");
2627
cc::Build::new()
2728
.file("./optix_stubs.c")
2829
.include(optix_include)

0 commit comments

Comments
 (0)