[flang-commits] [clang] [flang] [llvm] [openmp] [Flang] Move builtin .mod generation into runtimes (Reapply #137828) (PR #169638)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Fri Nov 28 04:07:21 PST 2025


Meinersbur wrote:

> One problem with enabling flang-rt on the GPU is that it has a dependency on libc / libc++ on the GPU as well. Maybe there's a way to make it work there just to build the module files?

This is what FLANG_RT_ENABLE_STATIC=OFF FLANG_RT_ENABLE_SHARED=OFF does (which this PR makes the default on nvptx/amdgpu targets). It should only build the .f90 files which have no dependency of libc or libc++, and only builds object libraries, so there is no linking step.

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


More information about the flang-commits mailing list