File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 1
1
use find_cuda_helper:: { find_cuda_root, find_optix_root} ;
2
- use std:: env;
3
2
use std:: path:: { Path , PathBuf } ;
4
3
5
4
// OptiX is a bit exotic in how it provides its functions. It uses a function table
@@ -8,7 +7,6 @@ use std::path::{Path, PathBuf};
8
7
// OptiX provides this logic inside optix_stubs.h in the include dir, so we need to compile that
9
8
// to a lib and link it in so that we have the initialization and C function logic.
10
9
fn main ( ) {
11
- let out_dir = env:: var ( "OUT_DIR" ) . unwrap ( ) ;
12
10
let mut optix_include = find_optix_root ( ) . expect (
13
11
"Unable to find the OptiX SDK, make sure you installed it and
14
12
that OPTIX_ROOT or OPTIX_ROOT_DIR are set" ,
@@ -30,9 +28,6 @@ fn main() {
30
28
. include ( cuda_include)
31
29
. cpp ( false )
32
30
. compile ( "optix_stubs" ) ;
33
-
34
- println ! ( "cargo:rustc-link-search=native={}" , out_dir) ;
35
- println ! ( "cargo:rustc-link-lib=static=optix_stubs" ) ;
36
31
}
37
32
38
33
fn bindgen_optix ( optix_include : & Path , cuda_include : & Path ) {
You can’t perform that action at this time.
0 commit comments