[PATCH] D22636: Module: retry building modules that were just compiled by the same instance and are are out of date

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 21 11:36:59 PDT 2016


benlangmuir added a comment.

> B.pcm becomes out of date when we try to load module "A", because another instance overwrites "B.pcm"


How can this happen?  We intentionally keep the file descriptors of modules open.  If you just built A, then you will have B.pcm still open.  When you read A, you will use the same B that you used when you built A even if the file on disk has been replaced (and we use rename to replace the file, so the existing one is never modified).


https://reviews.llvm.org/D22636





More information about the cfe-commits mailing list