File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
crates/find_cuda_helper/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ pub fn find_libnvvm_bin_dir() -> String {
145
145
146
146
#[ cfg( all( target_os = "windows" , not( doc) ) ) ]
147
147
pub fn find_libnvvm_bin_dir ( ) -> String {
148
+ if env:: var ( "DOCS_RS" ) . is_ok ( ) {
149
+ return String :: new ( ) ;
150
+ }
148
151
find_cuda_root ( )
149
152
. expect ( "Failed to find CUDA ROOT, make sure the CUDA SDK is installed and CUDA_PATH or CUDA_ROOT are set!" )
150
153
. join ( "nvvm" )
@@ -156,6 +159,9 @@ pub fn find_libnvvm_bin_dir() -> String {
156
159
157
160
#[ cfg( all( target_os = "linux" , not( doc) ) ) ]
158
161
pub fn find_libnvvm_bin_dir ( ) -> String {
162
+ if env:: var ( "DOCS_RS" ) . is_ok ( ) {
163
+ return String :: new ( ) ;
164
+ }
159
165
find_cuda_root ( )
160
166
. expect ( "Failed to find CUDA ROOT, make sure the CUDA SDK is installed and CUDA_PATH or CUDA_ROOT are set!" )
161
167
. join ( "nvvm" )
You can’t perform that action at this time.
0 commit comments