[flang-commits] [flang] [Flang][runtime] Add dependency to build FortranRuntime after flang-new (PR #99737)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Fri Jul 19 22:41:28 PDT 2024
================
@@ -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 module_files)
----------------
mjklemm wrote:
Yeah, then we will have to rely on transitive dependencies FortranRuntime->module_files->flang-new. I'd like to be more explicit here to make sure that it's easier to understand.
https://github.com/llvm/llvm-project/pull/99737
More information about the flang-commits
mailing list