mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user