[llvm] r288400 - Fix module map to create a module for the configured header Config/abi-breaking.h

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 11:08:38 PST 2016


Author: mehdi_amini
Date: Thu Dec  1 13:08:38 2016
New Revision: 288400

URL: http://llvm.org/viewvc/llvm-project?rev=288400&view=rev
Log:
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

Modified:
    llvm/trunk/include/llvm/module.modulemap.build

Modified: llvm/trunk/include/llvm/module.modulemap.build
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/module.modulemap.build?rev=288400&r1=288399&r2=288400&view=diff
==============================================================================
--- llvm/trunk/include/llvm/module.modulemap.build (original)
+++ llvm/trunk/include/llvm/module.modulemap.build Thu Dec  1 13:08:38 2016
@@ -3,3 +3,7 @@ module LLVM_Support_DataTypes {
   header "Support/DataTypes.h"
   export *
 }
+module LLVM_Config_ABI_Breaking {
+  header "Config/abi-breaking.h"
+  export *
+}




More information about the llvm-commits mailing list