teak-llvm/libcxx/cmake/Modules
Petr Hosek c20c182df3 Reland "Use custom command and target to install libc++ headers"
Using file(COPY FILE...) has several downsides. Since the file command
is only executed at configuration time, any changes to headers made
after the initial CMake execution are ignored. This can lead to subtle
errors since the just built Clang will be using stale libc++ headers.
Furthermore, since the headers are copied prior to executing the build
system, this may hide missing dependencies on libc++ from other LLVM
components.

This changes replaces the use of file(COPY FILE...) command with a
custom command and target which addresses all aforementioned issues and
matches the implementation already used by other LLVM components that
also install headers like Clang builtin headers.

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

llvm-svn: 334468
2018-06-12 03:10:02 +00:00
..
CheckLibcxxAtomic.cmake [libcxx][cmake] Remove libatomic temporarily from CMAKE_REQUIRED_LIBRARIES when configuring 2018-04-04 11:05:03 +00:00
CodeCoverage.cmake Change test coverage generation to use llvm-cov instead of gcov. 2017-03-11 03:24:18 +00:00
HandleCompilerRT.cmake [CMake][libcxx] Fix the --target and --gcc-toolchain flag handling 2017-04-16 02:25:55 +00:00
HandleLibCXXABI.cmake Reland "Use custom command and target to install libc++ headers" 2018-06-12 03:10:02 +00:00
HandleLibcxxFlags.cmake Fix copy-paste errors in r292001 2017-01-14 10:22:21 +00:00
HandleOutOfTreeLLVM.cmake Make libcxx tests work when llvm sources are not present. 2017-09-20 16:01:50 +00:00
MacroEnsureOutOfSourceBuild.cmake