[all-commits] [llvm/llvm-project] b55f75: [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (#110217)

Michael Kruse via All-commits all-commits at lists.llvm.org
Sun Feb 16 06:40:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b55f7512a76f2358000139074c79d4c2521588de
      https://github.com/llvm/llvm-project/commit/b55f7512a76f2358000139074c79d4c2521588de
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2025-02-16 (Sun, 16 Feb 2025)

  Changed paths:
    A flang-rt/.clang-tidy
    A flang-rt/CMakeLists.txt
    A flang-rt/CODE_OWNERS.TXT
    A flang-rt/LICENSE.TXT
    A flang-rt/README.md
    M flang-rt/cmake/config.h.cmake.in
    A flang-rt/cmake/modules/AddFlangRT.cmake
    A flang-rt/cmake/modules/AddFlangRTOffload.cmake
    A flang-rt/cmake/modules/GetToolchainDirs.cmake
    A flang-rt/examples/CMakeLists.txt
    A flang-rt/examples/ExternalHelloWorld/CMakeLists.txt
    A flang-rt/lib/CMakeLists.txt
    A flang-rt/lib/Testing/CMakeLists.txt
    A flang-rt/lib/cuda/CMakeLists.txt
    A flang-rt/lib/quadmath/CMakeLists.txt
    A flang-rt/lib/runtime/CMakeLists.txt
    A flang-rt/test/CMakeLists.txt
    M flang-rt/test/Driver/ctofortran.f90
    M flang-rt/test/Driver/exec.f90
    A flang-rt/test/NonGtestUnit/lit.cfg.py
    A flang-rt/test/NonGtestUnit/lit.site.cfg.py.in
    M flang-rt/test/Runtime/no-cpp-dep.c
    A flang-rt/test/Unit/lit.cfg.py
    A flang-rt/test/Unit/lit.site.cfg.py.in
    A flang-rt/test/lit.cfg.py
    A flang-rt/test/lit.site.cfg.py.in
    A flang-rt/unittests/CMakeLists.txt
    A flang-rt/unittests/Evaluate/CMakeLists.txt
    A flang-rt/unittests/Runtime/CMakeLists.txt
    A flang-rt/unittests/Runtime/CUDA/CMakeLists.txt
    M flang/CMakeLists.txt
    A flang/cmake/modules/FlangCommon.cmake
    M flang/docs/GettingStarted.md
    M flang/docs/ReleaseNotes.md
    M flang/test/lit.cfg.py
    M flang/test/lit.site.cfg.py.in
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/LLVMExternalProjectUtils.cmake
    M llvm/projects/CMakeLists.txt
    M llvm/runtimes/CMakeLists.txt
    M runtimes/CMakeLists.txt

  Log Message:
  -----------
  [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (#110217)

Extract Flang's runtime library to use the LLVM_ENABLE_RUNTIME
mechanism. It will only become active when
`LLVM_ENABLE_RUNTIMES=flang-rt` is used, which also changes the
`FLANG_INCLUDE_RUNTIME` to `OFF` so the old runtime build rules do not
conflict. This also means that unless `LLVM_ENABLE_RUNTIMES=flang-rt` is
passed, nothing changes with the current build process.

Motivation:
* Consistency with LLVM's other runtime libraries (compiler-rt, libc,
libcxx, openmp offload, ...)
* Allows compiling the runtime for multiple targets at once using the
LLVM_RUNTIME_TARGETS configuration options
* Installs the runtime into the compiler's per-target resource directory
so it can be automatically found even when cross-compiling

Also see RFC discussion at
https://discourse.llvm.org/t/rfc-use-llvm-enable-runtimes-for-flangs-runtime/80826



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list