mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
d58a3c96d8
Summary: This diff removes the logic that consumes the legacy bind mount list and mounts them on startup. That functionality has been replaced with the eden redirect command. Instead of performing the bind mounts in the server, the server will now run `eden redirect fixup` to apply that configuration. This diff also changes the behavior of performBindMounts: previously, if the bind mount setup failed, we would tear down the entire repo mount. Since we're now spawning an external process, it is much more likely that something might fail and result in a bad experience, so we no longer bail out in that case: we'll continue and leave the bind mounts as-is. The user can then use `eden doctor` or `eden redirect fixup` to sort things out. Reviewed By: simpkins Differential Revision: D17236366 fbshipit-source-id: 8b004551a076216f0e5448942f00b5195ee18803
39 lines
939 B
CMake
39 lines
939 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
file(GLOB UTILS_SRCS "*.cpp")
|
|
|
|
if (WIN32)
|
|
list(
|
|
REMOVE_ITEM UTILS_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CoverageSet.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/FutureSubprocess.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/FutureUnixSocket.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/IoFuture.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ProcessAccessLog.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ProcessNameCache.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ProcUtil.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/SSLContext.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/UnixSocket.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/XAttr.cpp
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
eden_utils STATIC
|
|
${UTILS_SRCS}
|
|
)
|
|
|
|
target_link_libraries(
|
|
eden_utils
|
|
PUBLIC
|
|
eden_service_thrift_cpp
|
|
Folly::folly
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
add_subdirectory(test)
|
|
endif()
|