From 815a3f54331c39f2b400776f448dd29b3b03243b Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 10 Jan 2020 11:05:55 -0800 Subject: [PATCH] [CMake] Fix modules build after DWARFLinker reorganization Create a dedicate module for the DWARFLinker and make it depend on intrinsics gen. --- llvm/include/llvm/module.modulemap | 7 +++++++ llvm/lib/DWARFLinker/CMakeLists.txt | 2 ++ 2 files changed, 9 insertions(+) diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap index 25799b6..05de406 100644 --- a/llvm/include/llvm/module.modulemap +++ b/llvm/include/llvm/module.modulemap @@ -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 diff --git a/llvm/lib/DWARFLinker/CMakeLists.txt b/llvm/lib/DWARFLinker/CMakeLists.txt index 09610f0..f8c6133 100644 --- a/llvm/lib/DWARFLinker/CMakeLists.txt +++ b/llvm/lib/DWARFLinker/CMakeLists.txt @@ -3,4 +3,6 @@ add_llvm_component_library(LLVMDWARFLinker DWARFLinkerDeclContext.cpp DWARFLinker.cpp + DEPENDS + intrinsics_gen ) -- 2.7.4