mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:45:00 +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:
@@ -14,7 +14,7 @@ auto AddPreludeFilesToVfs(InstallPaths install_paths,
|
||||
llvm::vfs::InMemoryFileSystem* vfs) -> void {
|
||||
// Load the prelude into the test VFS.
|
||||
auto real_fs = llvm::vfs::getRealFileSystem();
|
||||
auto prelude = install_paths.FindPreludeFiles();
|
||||
auto prelude = install_paths.ReadPreludeManifest();
|
||||
CARBON_CHECK(prelude.ok()) << prelude.error();
|
||||
|
||||
for (const auto& path : *prelude) {
|
||||
|
||||
Reference in New Issue
Block a user