File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11Change this file to make users of the `download-ci-llvm` configuration download
22a new version of LLVM from CI, even if the LLVM submodule hasn’t changed.
33
4- Last change is for: https://github.com/rust-lang/rust/pull/139931
4+ Last change is for: https://github.com/rust-lang/rust/pull/148027
Original file line number Diff line number Diff line change @@ -2582,6 +2582,14 @@ impl Step for RustDev {
25822582 }
25832583 }
25842584 }
2585+ // The Enzyme(autodiff) cmake requires the LLVMConfig.cmake file to find tablegen
2586+ // and other utilities. We therefore also add all cmake files
2587+ // so that you can use the downloadable LLVM as if you’ve just run a full source build.
2588+ let cmake_dir = PathBuf :: new ( ) . join ( "lib" ) . join ( "cmake" ) . join ( "llvm" ) ;
2589+ let cmake_src_dir = builder. llvm_out ( target) . join ( & cmake_dir) ;
2590+ if cmake_src_dir. exists ( ) {
2591+ tarball. add_dir ( cmake_src_dir, cmake_dir) ;
2592+ }
25852593
25862594 if builder. config . lld_enabled {
25872595 // We want to package `lld` to use it with `download-ci-llvm`.
You can’t perform that action at this time.
0 commit comments