Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bootstrap/download-ci-llvm-stamp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Change this file to make users of the `download-ci-llvm` configuration download
a new version of LLVM from CI, even if the LLVM submodule hasn’t changed.

Last change is for: https://github.com/rust-lang/rust/pull/139931
Last change is for: https://github.com/rust-lang/rust/pull/148027
8 changes: 8 additions & 0 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2582,6 +2582,14 @@ impl Step for RustDev {
}
}
}
// The Enzyme(autodiff) cmake requires the LLVMConfig.cmake file to find tablegen
// and other utilities. We therefore also add all cmake files
// so that you can use the downloadable LLVM as if you’ve just run a full source build.
let cmake_dir = PathBuf::new().join("lib").join("cmake").join("llvm");
let cmake_src_dir = builder.llvm_out(target).join(&cmake_dir);
if cmake_src_dir.exists() {
tarball.add_dir(cmake_src_dir, cmake_dir);
}

if builder.config.lld_enabled {
// We want to package `lld` to use it with `download-ci-llvm`.
Expand Down
Loading