From 680fffdc922891583385c9e28e2654e462fb048b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 14 Feb 2015 05:54:56 +0000 Subject: [PATCH] [modules] Try harder to stop DebugInfo/PDB/DIA being built if not available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229243 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/module.modulemap | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/llvm/module.modulemap b/include/llvm/module.modulemap index 8f80c023f77..5a2a54cd80d 100644 --- a/include/llvm/module.modulemap +++ b/include/llvm/module.modulemap @@ -53,10 +53,23 @@ module LLVM_DebugInfo_PDB { umbrella "DebugInfo/PDB" module * { export * } + + // Separate out this subdirectory; it's an optional component that depends on + // a separate library which might not be available. + // + // FIXME: There should be a better way to specify this. + exclude header "DebugInfo/PDB/DIADataStream.h" + exclude header "DebugInfo/PDB/DIAEnumDebugStreams.h" + exclude header "DebugInfo/PDB/DIAEnumLineNumbers.h" + exclude header "DebugInfo/PDB/DIAEnumSourceFiles.h" + exclude header "DebugInfo/PDB/DIAEnumSymbols.h" + exclude header "DebugInfo/PDB/DIALineNumber.h" + exclude header "DebugInfo/PDB/DIARawSymbol.h" + exclude header "DebugInfo/PDB/DIASession.h" + exclude header "DebugInfo/PDB/DIASourceFile.h" + exclude header "DebugInfo/PDB/DIASupport.h" } -// Separate out this subdirectory; it's an optional component that depends on -// a separate library which might not be available. module LLVM_DebugInfo_PDB_DIA { requires cplusplus -- 2.34.1