[flang-commits] [flang] [llvm] [flang-rt] Implement iso module in C++ in the runtime (PR #197687)

Joseph Huber via flang-commits flang-commits at lists.llvm.org
Sat May 16 15:35:52 PDT 2026


jhuber6 wrote:

> Will the dependency come back anyway once @Meinersbur move the module files to the runtime?

You are correct, so I have removed the part of the code that removes the flang setup and dependency. However, I believe this PR is still valuable. The incoming changes in https://github.com/llvm/llvm-project/pull/171515 will move module generation here, but this file is different as it creates real symbols. With this PR, we can logically split `flang-rt` compilation and Flang module generation. That means we can compile the entire runtime stack without a fortran compiler. @Meinersbur's PR already sets up a separate target for module file generation.

The main motivating factor here is that internally at AMD we are struggling with the extremely heavy resource requirements for building flang, so the effort is to contain it as much as possible. We are going to limit the dependency graph such that we can build as much as possible without `flang` so we can do it at the end or separately.

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


More information about the flang-commits mailing list