[cfe-dev] Stripped-down Clang/LLVM

John McCall rjmccall at apple.com
Mon Mar 4 10:21:48 PST 2013


On Mar 4, 2013, at 8:18 AM, Joe Groff <arcata at gmail.com> wrote:
> Removing targets from the LLVM build at least is easy—just specify -DLLVM_TARGETS_TO_BUILD="X86" (or whatever target(s) you need) to your CMake cache. (I don't know the equivalent configure flag off the top of my head, but there is one.) I'm not sure whether the LLVM targets-to-build propagates automatically to remove code from Clang, though.

It does not.  This is intentional: it makes it easier to test frontend behavior, and we've been assuming that the code size performance impact is marginal (because it's all dead code and therefore out of i-cache in practice).  I'm not going to vouch for that decision, though.

John.





More information about the cfe-dev mailing list