From: Mehdi Amini Date: Thu, 1 Dec 2016 19:08:38 +0000 (+0000) Subject: Fix module map to create a module for the configured header Config/abi-breaking.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20e1df9682882d61a144b5ceb3773bd092e260c0;p=llvm Fix module map to create a module for the configured header Config/abi-breaking.h A client of a header that relies on ABI breaking should get the macro exported there. Before this, the unittest for Support/Error including Support/Error.h didn't get the macro exported by the Support module, because the latter only re-export its submodules and included module, not textual headers. Hopefully, it'll also fix the build with local submodule visibility, since the LLVM_Utils contains two submodules: ADT and Support. They both include abi-breaking.h that defines a symbol. The textual inclusion lead to a double definition of the symbol which broke the parent module. Differential Revision: https://reviews.llvm.org/D27273 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/module.modulemap.build b/include/llvm/module.modulemap.build index 7150fe93935..0f6f82af6e1 100644 --- a/include/llvm/module.modulemap.build +++ b/include/llvm/module.modulemap.build @@ -3,3 +3,7 @@ module LLVM_Support_DataTypes { header "Support/DataTypes.h" export * } +module LLVM_Config_ABI_Breaking { + header "Config/abi-breaking.h" + export * +}