Skip to content

Commit 2dc9b26

Browse files
committed
[libc++] Remove code to prevent overwriting the system libc++ on Darwin
The system partition is read-only since Catalina.
1 parent 4bd3d16 commit 2dc9b26

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

libcxx/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -262,23 +262,6 @@ option(LIBCXX_GENERATE_COVERAGE "Enable generating code coverage." OFF)
262262
set(LIBCXX_COVERAGE_LIBRARY "" CACHE STRING
263263
"The Profile-rt library used to build with code coverage")
264264

265-
# Don't allow a user to accidentally overwrite the system libc++ installation on Darwin.
266-
# If the user specifies -DCMAKE_INSTALL_PREFIX=/usr the install rules for libc++
267-
# will not be generated and a warning will be issued.
268-
option(LIBCXX_OVERRIDE_DARWIN_INSTALL "Enable overwriting darwins libc++ installation." OFF)
269-
mark_as_advanced(LIBCXX_OVERRIDE_DARWIN_INSTALL) # Don't show this option by default.
270-
271-
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT LIBCXX_OVERRIDE_DARWIN_INSTALL)
272-
if ("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr")
273-
message(WARNING "Disabling libc++ install rules because installation would "
274-
"overwrite the systems installation. Configure with "
275-
"-DLIBCXX_OVERRIDE_DARWIN_INSTALL=ON to suppress this behaviour.")
276-
mark_as_advanced(CLEAR LIBCXX_OVERRIDE_DARWIN_INSTALL) # Show the override option.
277-
set(LIBCXX_INSTALL_HEADERS OFF)
278-
set(LIBCXX_INSTALL_LIBRARY OFF)
279-
endif()
280-
endif()
281-
282265
set(LIBCXX_CONFIGURE_IDE_DEFAULT OFF)
283266
if (XCODE OR MSVC_IDE)
284267
set(LIBCXX_CONFIGURE_IDE_DEFAULT ON)

0 commit comments

Comments
 (0)