[cfe-commits] r110414 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Thu Aug 5 17:35:11 PDT 2010
Author: cornedbee
Date: Thu Aug 5 19:35:11 2010
New Revision: 110414
URL: http://llvm.org/viewvc/llvm-project?rev=110414&view=rev
Log:
Add an environment variable that makes libclang use chaining for PCH.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=110414&r1=110413&r2=110414&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Thu Aug 5 19:35:11 2010
@@ -848,7 +848,9 @@
// Tell the compiler invocation to generate a temporary precompiled header.
FrontendOpts.ProgramAction = frontend::GeneratePCH;
- // FIXME: Set ChainedPCH, once it is ready.
+ // FIXME: Set ChainedPCH unconditionally, once it is ready.
+ if (::getenv("LIBCLANG_CHAINING"))
+ FrontendOpts.ChainedPCH = true;
// FIXME: Generate the precompiled header into memory?
FrontendOpts.OutputFile = GetPreamblePCHPath();
More information about the cfe-commits
mailing list