File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
crates/circuits/primitives Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ edition.workspace = true
77homepage.workspace = true
88repository.workspace = true
99license.workspace = true
10+ links = " circuit-primitives-cuda"
1011
1112[dependencies ]
1213openvm-stark-backend = { workspace = true }
Original file line number Diff line number Diff line change 1+ #[ cfg( feature = "cuda" ) ]
2+ use std:: { env, path:: PathBuf } ;
3+
14#[ cfg( feature = "cuda" ) ]
25use openvm_cuda_builder:: { cuda_available, CudaBuilder } ;
36
@@ -17,5 +20,11 @@ fn main() {
1720
1821 builder. emit_link_directives ( ) ;
1922 builder. build ( ) ;
23+
24+ // Export include dir for downstream crates:
25+ let include_path = PathBuf :: from ( env:: var ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) )
26+ . join ( "cuda" )
27+ . join ( "include" ) ;
28+ println ! ( "cargo:include={}" , include_path. display( ) ) ; // -> DEP_CIRCUIT_PRIMITIVES_CUDA_INCLUDE
2029 }
2130}
You can’t perform that action at this time.
0 commit comments