hanchenye-llvm-project/libcxx/cmake/Modules
Eric Fiselier d77135f828 [libcxx] Remove installation rules on Darwin when it would overwrite the system installation.
Summary:
On Mac OS X overwriting `/usr/lib/libc++.dylib` can cause your computer to fail to boot. This patch tries to make it harder to do that accidentally. 

If `CMAKE_SYSTEM_NAME` is `Darwin` and `CMAKE_INSTALL_PREFIX` is `/usr` don't generate installation rules unless the user explicitly provides `LIBCXX_OVERRIDE_DARWIN_INSTALL=ON`. Note that `CMAKE_INSTALL_PREFIX` is always absolute so we don't need to worry about things like `/usr/../usr`.

Reviewers: mclow.lists, beanz, jroelofs

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D12209

llvm-svn: 246070
2015-08-26 20:18:21 +00:00
..
CodeCoverage.cmake [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
HandleLibCXXABI.cmake [libcxx] Remove installation rules on Darwin when it would overwrite the system installation. 2015-08-26 20:18:21 +00:00
HandleLibcxxFlags.cmake Remove -Werror when using check_cxx_compiler_flag because it was causing compiler-rt breakages. 2015-07-31 21:09:38 +00:00
HandleOutOfTreeLLVM.cmake Fix default value for LLVM_INCLUDE_DOCS in out of tree build. 2015-08-22 20:26:42 +00:00
MacroEnsureOutOfSourceBuild.cmake