ports/devel/llvm-devel/files/patch-cmake_modules_AddSphinxTarget.cmake
Brooks Davis 7f1cc9a0b8 Update to a new snapshot.
Work around a race in sphinx.

Create the target directory before calling sphinx to render content into
it.  Sphinx suffers from a race where it crashes with an exception if it
tries to make a directory and someone else does first.
2018-05-06 16:43:53 +00:00

11 lines
408 B
CMake

--- cmake/modules/AddSphinxTarget.cmake.orig
+++ cmake/modules/AddSphinxTarget.cmake
@@ -29,6 +29,8 @@
endif()
add_custom_target(${SPHINX_TARGET_NAME}
+ COMMAND ${CMAKE_COMMAND}
+ -E make_directory ${SPHINX_BUILD_DIR}
COMMAND ${SPHINX_EXECUTABLE}
-b ${builder}
-d "${SPHINX_DOC_TREE_DIR}"