File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1011,10 +1011,10 @@ impl Build {
1011
1011
}
1012
1012
1013
1013
let cudart = match & self . cudart {
1014
- Some ( opt) => opt. as_str ( ) ,
1014
+ Some ( opt) => opt. as_str ( ) , // {none|shared|static}
1015
1015
None => "none" ,
1016
1016
} ;
1017
- if self . cuda && cudart != "none" {
1017
+ if cudart != "none" {
1018
1018
if let Some ( nvcc) = which ( & self . get_compiler ( ) . path ) {
1019
1019
// Try to figure out the -L search path. If it fails,
1020
1020
// it's on user to specify one by passing it through
@@ -1052,7 +1052,7 @@ impl Build {
1052
1052
1053
1053
// And now the -l flag.
1054
1054
let lib = match cudart {
1055
- "dynamic " => "cudart" ,
1055
+ "shared " => "cudart" ,
1056
1056
"static" => "cudart_static" ,
1057
1057
bad => panic ! ( "unsupported cudart option: {}" , bad) ,
1058
1058
} ;
You can’t perform that action at this time.
0 commit comments