[flang-commits] [PATCH] D102040: [flang] Enable export of FIR includes into the install tree

Renaud Kauffmann via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri May 7 13:22:26 PDT 2021


Renaud-K updated this revision to Diff 343749.
Renaud-K added a comment.

My apologies. I should have blown away my build tree prior to testing this, otherwise cmake still somehow finds its way to the *.h.inc files

This change is more straightforward. It simply installs:
./include/flang/Optimizer/CodeGen/CGOps.h.inc
./include/flang/Optimizer/CodeGen/CGPasses.h.inc
./include/flang/Optimizer/Dialect/FIROps.h.inc
./include/flang/Optimizer/Dialect/FIROpsTypes.h.inc
./include/flang/Optimizer/Transforms/Passes.h.inc

side-by-side with their .h counterparts which have a dependency with them.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102040/new/

https://reviews.llvm.org/D102040

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -205,6 +205,7 @@
   include_directories(SYSTEM ${MLIR_TABLEGEN_OUTPUT_DIR})
 endif()
 set(FLANG_INTRINSIC_MODULES_DIR ${CMAKE_BINARY_DIR}/include/flang)
+set(FLANG_INCLUDE_DIR ${FLANG_BINARY_DIR}/include)
 
 if(FLANG_BUILD_NEW_DRIVER)
     # TODO: Remove when libclangDriver is lifted out of Clang
@@ -447,4 +448,11 @@
     PATTERN "config.h" EXCLUDE
     PATTERN ".git"     EXCLUDE
     PATTERN "CMakeFiles" EXCLUDE)
+    
+  install(DIRECTORY ${FLANG_INCLUDE_DIR}/flang
+    DESTINATION include
+    COMPONENT flang-headers
+    FILES_MATCHING
+    PATTERN "*.inc"
+    )
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102040.343749.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210507/f511d3ca/attachment.bin>


More information about the flang-commits mailing list