mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
155ac280ff
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 llvm-svn: 347420
28 lines
604 B
Plaintext
28 lines
604 B
Plaintext
|
|
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 *
|
|
}
|