File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1178,9 +1178,10 @@ pub fn rustc_cargo(
1178
1178
let enzyme_dir = builder. build . out . join ( arch) . join ( "enzyme" ) . join ( "lib" ) ;
1179
1179
cargo. rustflag ( "-L" ) . rustflag ( enzyme_dir. to_str ( ) . expect ( "Invalid path" ) ) ;
1180
1180
1181
- let llvm_config = builder. llvm_config ( builder. config . build ) . unwrap ( ) ;
1182
- let llvm_version_major = llvm:: get_llvm_version_major ( builder, & llvm_config) ;
1183
- cargo. rustflag ( "-l" ) . rustflag ( & format ! ( "Enzyme-{llvm_version_major}" ) ) ;
1181
+ if let Some ( llvm_config) = builder. llvm_config ( builder. config . build ) {
1182
+ let llvm_version_major = llvm:: get_llvm_version_major ( builder, & llvm_config) ;
1183
+ cargo. rustflag ( "-l" ) . rustflag ( & format ! ( "Enzyme-{llvm_version_major}" ) ) ;
1184
+ }
1184
1185
}
1185
1186
1186
1187
// Building with protected visibility reduces the number of dynamic relocations needed, giving
You can’t perform that action at this time.
0 commit comments