[cfe-dev] Speed-up clang compilation for preprocessed files

Serge Pavlov sepavloff at gmail.com
Wed Oct 9 23:40:39 PDT 2013


Preprocessor is built-in into clang, so if your source code does not
preprocessor directives, there is no extra expences.


2013/10/10 Лежанкин Иван <abyss.7 at gmail.com>

> Hi!
>
> What I'm doing:
>   1. Run `clang++ -### -c test.cc`
>   2. Run `clang -cc1 -E <flags from previous command> -o test.E`
>   3. Run `clang++ -c test.E -o test.o`
>
> I want to speed-up the third step. Since I have done all the
> preprocessing stuff, I suggest that there is a more efficient way of
> calling clang to compile already preprocessed file. How can I do that?
>
> Thanks in advance.
> Ivan.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



-- 
Thanks,
--Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131010/0b4bf73a/attachment.html>


More information about the cfe-dev mailing list