[LLVMbugs] [Bug 20756] Create a helper pragma to make unity builds easire

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 26 12:51:29 PDT 2014


Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Reid Kleckner <rnk at google.com> ---
I don't think we currently have any interest in supporting this. Unity builds
are a hack around crappy compiler technology, and we'd rather fix the core
algorithms rather than promote the hack. Most of our efforts are pointed at
modules, which also avoid reparsing headers and are much more scalable than
unity builds.

I don't think this is impossible to implement in Clang. Hypothetically you
could start the TU with your pragma. If we see the pragma, we would start
tracking TU-local entities such as using decls, anonymous namespaces, statics,
etc, and then somehow delete them from the AST after iterating to fixpoint in
CodeGen. Unless someone steps forward with the resources to implement this,
though, I think we should mark this as wontfix.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140826/b11fee5c/attachment.html>

More information about the llvm-bugs mailing list