Skip to content

Commit c730ece

Browse files
Auto merge of #148027 - ZuseZ4:dist-more-cmake, r=<try>
experimental shipping of more CMake files for Enzyme try-job: dist-x86_64-linux
2 parents 38bc246 + b2afe07 commit c730ece

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Change this file to make users of the `download-ci-llvm` configuration download
22
a 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

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)