[all-commits] [llvm/llvm-project] 4c4fc4: [Flang-RT] Build libflang_rt.so (#121782)

Michael Kruse via All-commits all-commits at lists.llvm.org
Mon Feb 17 03:53:33 PST 2025


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

  Changed paths:
    M flang-rt/CMakeLists.txt
    M flang-rt/cmake/modules/AddFlangRT.cmake
    M flang-rt/cmake/modules/AddFlangRTOffload.cmake
    M flang-rt/examples/ExternalHelloWorld/CMakeLists.txt
    M flang-rt/lib/cuda/CMakeLists.txt
    M flang-rt/lib/runtime/CMakeLists.txt
    M flang-rt/test/CMakeLists.txt
    M flang-rt/test/lit.cfg.py
    M flang-rt/unittests/Runtime/CUDA/CMakeLists.txt

  Log Message:
  -----------
  [Flang-RT] Build libflang_rt.so  (#121782)

Under non-Windows platforms, also create a dynamic library version of
the runtime. Build of either version of the library can be switched on
using FLANG_RT_ENABLE_STATIC=ON respectively FLANG_RT_ENABLE_SHARED=ON.
Default is to build only the static library, consistent with previous
behaviour. This is because the way the flang driver invokes the linker,
most linkers choose the dynamic library by default, if available.
Building the dynamic library therefore causes flang-built executables to
depend on `libflang_rt.so`, unless explicitly told otherwise.



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