[flang-commits] [flang] [Flang][runtime] Add dependency to build FortranRuntime after flang-new (PR #99737)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Mon Jul 22 08:42:40 PDT 2024
Meinersbur wrote:
@vzakhari I interpreted standalone as FLANG_STANDALONE_BUILD=ON", but now I think you mean using the flang/runtime/CMakeLists.txt as top-level files. That indeed yields an incomplete libFortranRuntime.a because `FORTRAN_MODULE_OBJECTS` is undefined. To get a complete one, one would just ask CMake to find a Fortran compiler (`project(FlangRuntime C CXX Fortran)`) and add `iso_fortran_env_impl.f90` to `source` so CMake is responsible to compile it (preferably using `-DCMAKE_Fortran_COMPILER=flang-new`).
This patch doesn't change anything and since it checks the existence of the targets beforehand so will not introduce new failures.
https://github.com/llvm/llvm-project/pull/99737
More information about the flang-commits
mailing list