Generate and use a manifest for prelude files. (#4291)

This removes the directory crawl because bazel doesn't remove files from
execroot when the rule generating them would no longer generate them.

Fixes #4288
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-09-10 20:59:49 +00:00
1 parent 2e299f5fc4
commit 6311552fcc
8 files changed
+85 -43

No files matched your search

+1 -1
View File
@@ -829,7 +829,7 @@ auto Driver::Compile(const CompileOptions& options,
// package-specific search path based on the library name.
llvm::SmallVector<std::string> prelude;
if (options.prelude_import && options.phase >= CompileOptions::Phase::Check) {
if (auto find = installation_->FindPreludeFiles(); find.ok()) {
if (auto find = installation_->ReadPreludeManifest(); find.ok()) {
prelude = std::move(*find);
} else {
error_stream_ << "ERROR: " << find.error() << "\n";