[flang-commits] [PATCH] D103540: [flang] Enabling flang to build with BUILD_SHARED_LIBS=On

Renaud Kauffmann via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jun 2 10:53:18 PDT 2021


Renaud-K created this revision.
Renaud-K added reviewers: awarzynski, CarolineConcatto, jeanPerier, schweitz.
Renaud-K added a project: Flang.
Herald added subscribers: jdoerfert, mgorny.
Renaud-K requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When building with static libs, the linker only needs to find the minimal dependencies required to arrive to an executable. 
When building with shared libs, the linker requires that all the symbols in the shared libs be resolved which exposes more dependencies.

Making the dependency with FortranEvaluate explicit so we can build with BUILD_SHARED_LIBS=On


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103540

Files:
  flang/tools/flang-driver/CMakeLists.txt


Index: flang/tools/flang-driver/CMakeLists.txt
===================================================================
--- flang/tools/flang-driver/CMakeLists.txt
+++ flang/tools/flang-driver/CMakeLists.txt
@@ -25,6 +25,7 @@
   PRIVATE
   clangDriver
   clangBasic
+  FortranEvaluate
 )
 
 install(TARGETS flang-new DESTINATION bin)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103540.349323.patch
Type: text/x-patch
Size: 329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210602/741745ac/attachment.bin>


More information about the flang-commits mailing list