[llvm-branch-commits] [flang] [llvm] [Flang-RT] Build libflang_rt.so (PR #121782)

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 20 04:34:38 PST 2025


================
@@ -8,6 +8,12 @@
 
 macro(enable_cuda_compilation name files)
   if (FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
+    if (NOT FLANG_RT_ENABLE_STATIC)
+      message(FATAL_ERROR
+        "FLANG_RT_ENABLE_STATIC is required for CUDA build of Flang-RT"
+        )
+    endif()
+
     enable_language(CUDA)
 
     set_target_properties(${name}
----------------
Meinersbur wrote:

Should be fixed in 0450959120e5ebae63b1e26b8232e7193c403099. Noticed myself when testing all the build configuratons. Unfortuntelty ALIAS targets do not solve everything, they cannot be used to modify a target.

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


More information about the llvm-branch-commits mailing list