[PATCH] D13139: [builtins] Build both static and shared versions of the builtins library.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 09:40:50 PDT 2015


vkalintiris created this revision.
vkalintiris added reviewers: samsonov, howard.hinnant.
vkalintiris added a subscriber: llvm-commits.

http://reviews.llvm.org/D13139

Files:
  lib/builtins/CMakeLists.txt

Index: lib/builtins/CMakeLists.txt
===================================================================
--- lib/builtins/CMakeLists.txt
+++ lib/builtins/CMakeLists.txt
@@ -335,12 +335,14 @@
         endif ()
       endforeach ()
 
-      add_compiler_rt_runtime(clang_rt.builtins
-                              STATIC
-                              ARCHS ${arch}
-                              SOURCES ${${arch}_SOURCES}
-                              CFLAGS "-std=c99"
-                              PARENT_TARGET builtins)
+      foreach (build_type STATIC SHARED)
+        add_compiler_rt_runtime(clang_rt.builtins
+                                ${build_type}
+                                ARCHS ${arch}
+                                SOURCES ${${arch}_SOURCES}
+                                CFLAGS "-std=c99"
+                                PARENT_TARGET builtins)
+      endforeach()
     endif ()
   endforeach ()
 endif ()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13139.35642.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150924/d0569760/attachment.bin>


More information about the llvm-commits mailing list