Enable chained precompiled headers for use with precompiled preambles

llvm-svn: 115260
This commit is contained in:
Douglas Gregor 2010-10-01 01:05:22 +00:00
parent eb114da506
commit 9e136b544d
1 changed files with 1 additions and 3 deletions

View File

@ -1158,9 +1158,7 @@ llvm::MemoryBuffer *ASTUnit::getMainBufferWithPrecompiledPreamble(
// Tell the compiler invocation to generate a temporary precompiled header.
FrontendOpts.ProgramAction = frontend::GeneratePCH;
// FIXME: Set ChainedPCH unconditionally, once it is ready.
if (::getenv("LIBCLANG_CHAINING"))
FrontendOpts.ChainedPCH = true;
FrontendOpts.ChainedPCH = true;
// FIXME: Generate the precompiled header into memory?
FrontendOpts.OutputFile = PreamblePCHPath;