From 654aa3ad92f2e496eb082cf07b3de3471ae58a92 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 10 Dec 2021 17:26:36 -0800 Subject: [PATCH] Revert "[llvm] Partial revert, hopefully fix LLVM module maps build" This reverts commit 8d897ec91528e943bf2be7356845d3428ae369ae. I tentativily landed John's patch in D115553 to fix the macOS bots but it's still failing as shown here: https://green.lab.llvm.org/green/job/lldb-cmake/39267/ Signed-off-by: Med Ismail Bennani --- llvm/include/llvm/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/CMakeLists.txt b/llvm/include/llvm/CMakeLists.txt index b46319f24fc8..2feabd1954e4 100644 --- a/llvm/include/llvm/CMakeLists.txt +++ b/llvm/include/llvm/CMakeLists.txt @@ -5,5 +5,5 @@ add_subdirectory(Frontend) # If we're doing an out-of-tree build, copy a module map for generated # header files into the build area. if (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") - configure_file(module.modulemap.build module.modulemap COPYONLY) + configure_file(module.modulemap.build ${LLVM_INCLUDE_DIR}/module.modulemap COPYONLY) endif (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")