[flang-commits] [flang] 5cfbd0f - [flang] Add missing dependencies for flang/lib/Optimizer/Dialect

Peter Steinfeld via flang-commits flang-commits at lists.llvm.org
Fri Mar 10 13:43:21 PST 2023


Author: Peter Steinfeld
Date: 2023-03-10T13:43:03-08:00
New Revision: 5cfbd0f4e762ea3ee4c4c017b242c59264cbc79c

URL: https://github.com/llvm/llvm-project/commit/5cfbd0f4e762ea3ee4c4c017b242c59264cbc79c
DIFF: https://github.com/llvm/llvm-project/commit/5cfbd0f4e762ea3ee4c4c017b242c59264cbc79c.diff

LOG: [flang] Add missing dependencies for flang/lib/Optimizer/Dialect

Patch D145640 wasn't building for me because .cpp files in
flang/lib/Optimizer/Dialect depend on the files generated in
.../build/include/llfm/IR.  But the .cpp file compilations were being
done before the needed include files were generated.

This patch fixes that by adding dependencies on "intrinsics_gen" to the
CMake files in two directories.

Differential Revision: https://reviews.llvm.org/D145825

Added: 
    

Modified: 
    flang/lib/Optimizer/Dialect/CMakeLists.txt
    flang/lib/Optimizer/Dialect/Support/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/Dialect/CMakeLists.txt b/flang/lib/Optimizer/Dialect/CMakeLists.txt
index 58cecaa7cb744..342a9d141e72a 100644
--- a/flang/lib/Optimizer/Dialect/CMakeLists.txt
+++ b/flang/lib/Optimizer/Dialect/CMakeLists.txt
@@ -12,6 +12,7 @@ add_flang_library(FIRDialect
   CanonicalizationPatternsIncGen
   MLIRIR
   FIROpsIncGen
+  intrinsics_gen
 
   LINK_LIBS
   FIRDialectSupport

diff  --git a/flang/lib/Optimizer/Dialect/Support/CMakeLists.txt b/flang/lib/Optimizer/Dialect/Support/CMakeLists.txt
index 352588f940855..c37b0549f7fc1 100644
--- a/flang/lib/Optimizer/Dialect/Support/CMakeLists.txt
+++ b/flang/lib/Optimizer/Dialect/Support/CMakeLists.txt
@@ -6,6 +6,7 @@ add_flang_library(FIRDialectSupport
 
   DEPENDS
   MLIRIR
+  intrinsics_gen
 
   LINK_LIBS
   ${dialect_libs}


        


More information about the flang-commits mailing list