[libc-commits] [libc] [libc] Fix building bitcode library for GPU (PR #100491)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Jul 25 08:49:23 PDT 2024


================
@@ -51,7 +51,13 @@ foreach(archive IN ZIP_LISTS
       PROPERTIES
         OUTPUT_NAME ${archive_1}.bc
     )
-    list(APPEND added_gpu_bitcode_targets ${archive_1}bitcode)
+    list(APPEND added_bitcode_targets ${archive_1}bitcode)
+
+    # A dummy library required make the custom command that creates the bitcode
+    # actually build so it can be installed.
+    add_library(${archive_1}dummy STATIC stub.cpp)
----------------
jhuber6 wrote:

Done

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


More information about the libc-commits mailing list