[PATCH] D53510: [LLVM] Allow modulemap installation

Eric Fiselier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 09:55:15 PDT 2018


EricWF created this revision.
EricWF added reviewers: rsmith, mehdi_amini, bruno.
Herald added a subscriber: mgorny.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D53510

Files:
  CMakeLists.txt
  include/llvm/module.extern.modulemap
  include/llvm/module.install.modulemap
  include/llvm/module.modulemap

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53510.170446.patch
Type: text/x-patch
Size: 4850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/88392a3e/attachment.bin>


More information about the llvm-commits mailing list