mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +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:
@@ -242,7 +242,10 @@ auto TestCompile(llvm::StringRef source) -> bool {
|
||||
|
||||
fs->addFile("test.carbon", /*ModificationTime=*/0,
|
||||
llvm::MemoryBuffer::getMemBuffer(source));
|
||||
return driver.RunCommand({"compile", "--phase=check", "test.carbon"}).success;
|
||||
return driver
|
||||
.RunCommand({"compile", "--phase=check", "--no-include-carbon-core",
|
||||
"test.carbon"})
|
||||
.success;
|
||||
}
|
||||
|
||||
TEST(SourceGenTest, GenApiFileDenseDeclsTest) {
|
||||
|
||||
Reference in New Issue
Block a user