From a1726e65bc1fdbd2800839e48e68cb4a68cc7092 Mon Sep 17 00:00:00 2001 From: David Truby Date: Thu, 9 Apr 2020 16:39:18 +0100 Subject: [PATCH] [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 --- flang/lib/Evaluate/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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 )