[CMake] Copy C++ headers before configuring runtimes build
authorChris Bieneman <chris.bieneman@me.com>
Thu, 23 May 2019 17:06:46 +0000 (17:06 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Thu, 23 May 2019 17:06:46 +0000 (17:06 +0000)
commitc5ec2a2bc1980e21910ca5c649cc0c3346979fa7
tree3679508f285e5e6bb9b6e35a4eeb4a237fda9f41
parent7bbefb13ee521c2385788fa3e2f1aac4c36c313d
[CMake] Copy C++ headers before configuring runtimes build

Summary: On some platforms C++ headers are packaged with the compiler not the sysroot. If you don't copy C++ headers into the build include directory during configuraiton of the outer build the C++ check during the runtime configuration may get inaccurate results.

Reviewers: phosek, compnerd, smeenai, EricWF

Reviewed By: compnerd

Subscribers: EricWF, christof, libcxx-commits, mgorny, llvm-commits

Tags: #llvm, #libc

Differential Revision: https://reviews.llvm.org/D62155

llvm-svn: 361513
libcxx/include/CMakeLists.txt
llvm/runtimes/CMakeLists.txt