[PATCH] D11963: Create a __config_site file to capture configuration decisions.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 30 11:12:47 PDT 2015


EricWF added a comment.

In http://reviews.llvm.org/D11963#235148, @jroelofs wrote:

> In http://reviews.llvm.org/D11963#234789, @EricWF wrote:
>
> > Copy the headers to the build directory during every build instead of just during CMake configuration.
>
>
> Sounds like this would cause every build to effectively be a full build. I don't think we want that...
>
> If that's the case, then I think we should use the same trick that TableGen uses: write the new file to a temporary, and overwrite it iff they differ.


So that's not what happens but that's because libc++ builds using the headers in the source directory. During the build all of the macros in the __config_site file are manually defined on the command line so that we don't need to use the generated headers. NOTE: The tests still use the generated headers though.


http://reviews.llvm.org/D11963





More information about the cfe-commits mailing list