[CMake] Fix modules build after DWARFLinker reorganization
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 10 Jan 2020 19:05:55 +0000 (11:05 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 10 Jan 2020 19:06:38 +0000 (11:06 -0800)
Create a dedicate module for the DWARFLinker and make it depend on
intrinsics gen.

llvm/include/llvm/module.modulemap
llvm/lib/DWARFLinker/CMakeLists.txt

index 25799b6..05de406 100644 (file)
@@ -152,6 +152,13 @@ module LLVM_DebugInfo_CodeView {
   textual header "DebugInfo/CodeView/CodeViewSymbols.def"
 }
 
+module LLVM_DWARFLinker {
+  requires cplusplus
+
+  umbrella "DWARFLinker"
+  module * { export * }
+}
+
 module LLVM_ExecutionEngine {
   requires cplusplus
 
index 09610f0..f8c6133 100644 (file)
@@ -3,4 +3,6 @@ add_llvm_component_library(LLVMDWARFLinker
   DWARFLinkerDeclContext.cpp
   DWARFLinker.cpp
 
+  DEPENDS
+  intrinsics_gen
   )