[flang-commits] [flang] a1726e6 - [flang] Add dependency on libSemantics to libEvaluate.

David Truby via flang-commits flang-commits at lists.llvm.org
Thu Apr 9 08:41:53 PDT 2020


Author: David Truby
Date: 2020-04-09T16:41:36+01:00
New Revision: a1726e65bc1fdbd2800839e48e68cb4a68cc7092

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

LOG: [flang] Add dependency on libSemantics to libEvaluate.

When building flang with LLVM HEAD, the unittests fail to link with ld.bfd or
ld.gold due to a linker ordering issue. Adding libSemantics as a dependency to
libEvaluate seems to fix that issue.

Reviewed at: https://github.com/flang-compiler/f18/pull/1104

Added: 
    

Modified: 
    flang/lib/Evaluate/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/CMakeLists.txt b/flang/lib/Evaluate/CMakeLists.txt
index 2b23455165aa..a508bec10a63 100644
--- a/flang/lib/Evaluate/CMakeLists.txt
+++ b/flang/lib/Evaluate/CMakeLists.txt
@@ -32,6 +32,7 @@ target_compile_features(FortranEvaluate PUBLIC cxx_std_17)
 target_link_libraries(FortranEvaluate
   FortranCommon
   FortranDecimal
+  FortranSemantics
   FortranParser
 )
 


        


More information about the flang-commits mailing list