[llvm-branch-commits] [flang] [llvm] [Flang] Move runtime library files to FortranRuntime. NFC (PR #110298)
    Peter Klausler via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Wed Oct  9 15:24:28 PDT 2024
    
    
  
klausler wrote:
> While it would be possible to only have a `FortranRuntime/CMakeLists.txt` and leave all the other files in `flang/`, I strongly believe this is a bad idea. It is the norm for LLVM runtimes to have separate sources.
A Fortran compiler and its runtime are tightly coupled; the compiler can only work with this runtime, this runtime can only be used by this compiler, and they share common API definitions and data structures.
I don't mind if you move the sources and headers that are used *only* by the runtime into a new top-level directory, if you must.  But moving common headers and sources used by *both* the compiler and the runtime builds out of the compiler tree makes no sense to me.
https://github.com/llvm/llvm-project/pull/110298
    
    
More information about the llvm-branch-commits
mailing list