diff options
| author | Eric Fiselier <eric@efcs.ca> | 2015-08-26 20:18:21 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2015-08-26 20:18:21 +0000 |
| commit | d77135f8285d66d0f76974511c86fa0f9a8c0713 (patch) | |
| tree | a936eff1c1ba8438899f9a394e9b3e1f0ac2af01 /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
| parent | 4b30e569be72f6dfcdf811c12eb34e2d4e4d4ce5 (diff) | |
| download | bcm5719-llvm-d77135f8285d66d0f76974511c86fa0f9a8c0713.tar.gz bcm5719-llvm-d77135f8285d66d0f76974511c86fa0f9a8c0713.zip | |
[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
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
0 files changed, 0 insertions, 0 deletions

