mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 21:31:04 +01:00
precompile and cache Carbon prelude (#7432)
Refactors the link driver to automatically compile and cache the carbon prelude for use in linking. Implements a `carbon_library` rule for compiling the Core library dependencies in the examples.
This commit is contained in:
@@ -86,6 +86,11 @@ auto InstallPaths::ReadClangHeadersManifest() const
|
||||
return ReadManifest(root_, "clang_headers_manifest.txt");
|
||||
}
|
||||
|
||||
auto InstallPaths::ReadCarbonCoreManifest() const
|
||||
-> ErrorOr<llvm::SmallVector<std::string>> {
|
||||
return ReadManifest(core_package(), "core_library_manifest.txt");
|
||||
}
|
||||
|
||||
auto InstallPaths::ReadManifest(std::filesystem::path manifest_path,
|
||||
std::filesystem::path manifest_file) const
|
||||
-> ErrorOr<llvm::SmallVector<std::string>> {
|
||||
|
||||
Reference in New Issue
Block a user