[flang-commits] [flang] [Flang][runtime] Add dependency to build FortranRuntime after flang-new (PR #99737)

via flang-commits flang-commits at lists.llvm.org
Fri Jul 19 21:46:57 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: Michael Klemm (mjklemm)

<details>
<summary>Changes</summary>

Makefile-based builds did not have proper dependencies to built the FortranRuntime target after Flang new is available.  This PR introduces a dependency to ensure that this is the case.  Relates to PR #<!-- -->95388.

---
Full diff: https://github.com/llvm/llvm-project/pull/99737.diff


1 Files Affected:

- (modified) flang/runtime/CMakeLists.txt (+6) 


``````````diff
diff --git a/flang/runtime/CMakeLists.txt b/flang/runtime/CMakeLists.txt
index 8588af7e16eec..6d435f00b8965 100644
--- a/flang/runtime/CMakeLists.txt
+++ b/flang/runtime/CMakeLists.txt
@@ -295,3 +295,9 @@ else()
     FortranRuntime.static_dbg FortranRuntime.dynamic_dbg)
 endif()
 set_target_properties(FortranRuntime PROPERTIES FOLDER "Flang/Runtime Libraries")
+
+# Add dependency to make sure that Fortran runtime library is being built after
+# we have the Flang compiler available.  This also includes the MODULE files
+# that compile when the 'flang-new' target is built.
+add_dependencies(FortranRuntime flang-new)
+

``````````

</details>


https://github.com/llvm/llvm-project/pull/99737


More information about the flang-commits mailing list