mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 13:51:10 +00: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:
1 parent
2e299f5fc4
commit
6311552fcc
8 files changed
+85
-43
No files matched your search
@@ -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