[PATCH] D59176: Modules: Add LangOptions::CacheGeneratedPCH
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 9 09:24:09 PST 2019
dexonsmith created this revision.
dexonsmith added reviewers: bruno, rsmith, vsapsai, jordan_rose.
Herald added a subscriber: jdoerfert.
Add an option to cache the generated PCH in the ModuleCache when
emitting it. This protects clients that build PCHs and read them in the
same process, allowing them to avoid race conditions between parallel
jobs the same way that Clang's implicit module build system does.
https://reviews.llvm.org/D59176
Files:
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Serialization/ASTWriter.h
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/GeneratePCH.cpp
clang/unittests/Frontend/FrontendActionTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59176.189988.patch
Type: text/x-patch
Size: 8596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190309/f2d032e1/attachment-0001.bin>
More information about the cfe-commits
mailing list