[cfe-dev] Add directives-only preprocessing

Matthew Larionov via cfe-dev cfe-dev at lists.llvm.org
Wed May 17 07:30:17 PDT 2017


Hello!

When using clang with distributed build systems various errors may occur
due to clang compiles
source code differently if it was previously preprocessed(see [1] for
example). Is it an intentional behaviour?

As a solution for this kind of errors gcc provides "-fdirectives-only"
flag([2]) to preprocess only directives, but prevent macro expansions
outside of directives, which also speedups preprocessing
on local machine. Are there any plans to support this kind of feature? Are
patches welcome?

1. http://petereisentraut.blogspot.ru/2011/09/ccache-and-clang-part-2.html
2. https://gcc.gnu.org/ml/gcc-patches/2007-02/msg01125.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170517/f154e749/attachment.html>


More information about the cfe-dev mailing list