[flang-commits] [flang] a6c1692 - [Flang] fix dependency issues after D78215

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Apr 21 12:33:59 PDT 2020


Author: Valentin Clement
Date: 2020-04-21T20:32:11+01:00
New Revision: a6c1692cb30e62c94513c2c6262cd76df92ef892

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

LOG: [Flang] fix dependency issues after D78215

Patch D78215 changes various dependencies in the CMakeLists.txt. This
results in error while compiling. This patch fixes the issue.

Reviewers: DavidTruby

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/CMakeLists.txt b/flang/lib/Evaluate/CMakeLists.txt
index 8426995d948b..0e5dc4d2c5ff 100644
--- a/flang/lib/Evaluate/CMakeLists.txt
+++ b/flang/lib/Evaluate/CMakeLists.txt
@@ -29,6 +29,7 @@ add_flang_library(FortranEvaluate
   LINK_LIBS
   FortranCommon
   FortranDecimal
+  FortranSemantics
   FortranParser
 )
 

diff  --git a/flang/lib/Optimizer/Dialect/CMakeLists.txt b/flang/lib/Optimizer/Dialect/CMakeLists.txt
index 462039ebf6a3..ef7f62518dac 100644
--- a/flang/lib/Optimizer/Dialect/CMakeLists.txt
+++ b/flang/lib/Optimizer/Dialect/CMakeLists.txt
@@ -1,3 +1,5 @@
+get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
+
 add_flang_library(FIRDialect
   FIRAttr.cpp
   FIRDialect.cpp
@@ -6,6 +8,7 @@ add_flang_library(FIRDialect
 
   DEPENDS
   FIROpsIncGen
+  ${dialect_libs}
 
   LINK_LIBS
   FIRSupport

diff  --git a/flang/lib/Optimizer/Support/CMakeLists.txt b/flang/lib/Optimizer/Support/CMakeLists.txt
index d8e270f5e73e..94c2ca750cb3 100644
--- a/flang/lib/Optimizer/Support/CMakeLists.txt
+++ b/flang/lib/Optimizer/Support/CMakeLists.txt
@@ -3,6 +3,8 @@ get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
 add_flang_library(FIRSupport
   KindMapping.cpp
 
+  DEPENDS
+  ${dialect_libs}
   LINK_LIBS
   ${dialect_libs}
 )


        


More information about the flang-commits mailing list