Prior to this patch, we would generate a fancy <config> header by
concatenating <config_site> and <__config>. This complexifies the
build system and also increases the difference between what's tested
and what's actually installed.
This patch removes that complexity and instead simply installs <config_site>
alongside the libc++ headers. <config_site> is then included by <config>,
which is much simpler. Doing this also opens the door to having different
<config_site> headers depending on the target, which was impossible before.
It does change the workflow for testing header-only changes to libc++.
Previously, we would run lit against the headers in libcxx/include.
After this patch, we run it against a fake installation root of the
headers (containing a proper <__config_site> header). This makes use
closer to testing what we actually install, which is good, however it
does mean that we have to update that root before testing header changes.
Thus, we now need to run ninja check-cxx-deps before running lit by
hand.
This commit was originally applied in 5d796645d and reverted in 48e4b0fd3
because it broke several bots. The issues should have been addressed now.
This comment is scary but uninformative. What "other projects" do you mean? By "these dependencies" do you mean the dependency from those other projects to the specific string "c++/v1" (in which case surely you should say They not We)? or by "these dependencies" do you mean one or more of lines 408-424?
Do you mean They should use LIBCXX_GENERATED_INCLUDE_DIR instead of hard-coding include/c++/v1?