forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Currently we can't install the modulemaps provided by LLVM, since they are not structured to support headers generated as part of the build (ex. `llvm/IR/Attributes.gen`). This patch restructures the module maps in order to support installation. Modules containing generated headers are defined in the new `module.extern.modulemap` file, and are referenced from the main `module.modulemap` using `extern module`. There are two versions of the `module.extern.modulemap` file; one used when building and another, `module.install.modulemap`, which is re-named during installation. Users can opt-into module map installation using `-DLLVM_INSTALL_MODULEMAPS=ON`. The default value is `OFF` due to llvm.org/PR31905. Reviewers: rsmith, mehdi_amini, bruno, EricWF Reviewed By: EricWF Subscribers: tschuett, chapuni, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D53510 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347420 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
4 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module LLVM_Extern_Config_Def {} | ||
module LLVM_Extern_IR_Attributes_Gen {} | ||
module LLVM_Extern_IR_Intrinsics_Gen {} | ||
module LLVM_Extern_IR_Intrinsics_Enum {} | ||
module LLVM_Extern_Utils_DataTypes {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
module LLVM_Extern_Config_Def { | ||
textual header "Config/AsmParsers.def" | ||
textual header "Config/AsmPrinters.def" | ||
textual header "Config/Disassemblers.def" | ||
textual header "Config/Targets.def" | ||
export * | ||
} | ||
|
||
module LLVM_Extern_IR_Attributes_Gen { | ||
textual header "IR/Attributes.gen" | ||
textual header "IR/Attributes.inc" | ||
} | ||
|
||
module LLVM_Extern_IR_Intrinsics_Gen { | ||
textual header "IR/Intrinsics.gen" | ||
textual header "IR/Intrinsics.inc" | ||
} | ||
|
||
module LLVM_Extern_IR_Intrinsics_Enum { | ||
textual header "IR/IntrinsicEnums.inc" | ||
} | ||
|
||
module LLVM_Extern_Utils_DataTypes { | ||
header "Support/DataTypes.h" | ||
export * | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters