[llvm] Partial revert, hopefully fix LLVM module maps build
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Sat, 11 Dec 2021 01:17:01 +0000 (17:17 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 11 Dec 2021 01:17:01 +0000 (17:17 -0800)
In 492de35df443d5f31480173d5f1274c7835cd3d8 / D115544 I accidentally
added ${LLVM_INCLUDE_DIR}/ to the destination path. This broke the
"LLDB Incremental" build. Putting it back the way it was should fix it.

Differencial Revision: https://reviews.llvm.org/D115553

llvm/include/llvm/CMakeLists.txt

index 2feabd1..b46319f 100644 (file)
@@ -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 ${LLVM_INCLUDE_DIR}/module.modulemap COPYONLY)
+  configure_file(module.modulemap.build module.modulemap COPYONLY)
 endif (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")