diff options
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | llvm_cmake_modules_AddLLVM.cmake.patch | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -47,6 +47,7 @@ source=( 'clang-tools-extra::svn+http://llvm.org/svn/llvm-project/clang-tools-extra/trunk' 'compiler-rt::svn+http://llvm.org/svn/llvm-project/compiler-rt/trunk' llvm-Config-llvm-config.h + llvm_cmake_modules_AddLLVM.cmake.patch ) sha256sums=( @@ -55,6 +56,7 @@ sha256sums=( 'SKIP' 'SKIP' '597dc5968c695bbdbb0eac9e8eb5117fcd2773bc91edf5ec103ecffffab8bc48' + '7f87f376b43581369836b473c8508025ff9945f1f61653e9c292b165266168f8' ) # @@ -126,6 +128,9 @@ prepare() { -e 's|^\([[:blank:]]*DESTINATION[[:blank:]]\+\)docs/ocaml/html|\1share/doc/ocaml|' \ -i docs/CMakeLists.txt + # http://reviews.llvm.org/D13936 + patch -p2 -i "${srcdir}/llvm_cmake_modules_AddLLVM.cmake.patch" + mkdir -p "${srcdir}/build" } diff --git a/llvm_cmake_modules_AddLLVM.cmake.patch b/llvm_cmake_modules_AddLLVM.cmake.patch new file mode 100644 index 000000000000..f95d575cac69 --- /dev/null +++ b/llvm_cmake_modules_AddLLVM.cmake.patch @@ -0,0 +1,11 @@ +--- src/llvm/cmake/modules/AddLLVM.cmake (revision 250891) ++++ src/llvm/cmake/modules/AddLLVM.cmake (working copy) +@@ -781,7 +781,7 @@ + # enable or disable building it with everything else. + # Additional parameter can be specified as the name of directory. + macro(add_llvm_external_project name) +- add_llvm_subdirectory(LLVM TOOL ${name}) ++ add_llvm_subdirectory(LLVM TOOL ${name} ${ARGN}) + endmacro() + + macro(add_llvm_tool_subdirectory name) |