[PATCH] D13407: [libcxx] Capture configuration information when installing the libc++ headers
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 13:24:31 PDT 2015
EricWF added inline comments.
================
Comment at: include/CMakeLists.txt:31
@@ +30,3 @@
+ # by prepending __config_site to the current __config header.
+ # TODO(EricWF) Is it portable to use "cat" and ">>"?
+ add_custom_command(OUTPUT ${LIBCXX_BINARY_DIR}/__generated_config
----------------
eugenis wrote:
> I don't think >> would work on windows.
> Do you really need __generated_config to be created at build time (as opposed to configure time)? You could use file(read) and file(append) then.
>
I would strongly prefer the file got generated at build time so that it contains any changes made in the source tree. Any other behavior is developer hostile and non-obvious. In order to keep the installed headers consistent we need to do this. Although I hope there is a better way to achieve this.
http://reviews.llvm.org/D13407
More information about the cfe-commits
mailing list