[PATCH] D40927: [runtimes] Add install-*-stripped targets

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 11:43:24 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL320182: [runtimes] Add install-*-stripped targets (authored by smeenai).

Repository:
  rL LLVM

https://reviews.llvm.org/D40927

Files:
  llvm/trunk/runtimes/CMakeLists.txt


Index: llvm/trunk/runtimes/CMakeLists.txt
===================================================================
--- llvm/trunk/runtimes/CMakeLists.txt
+++ llvm/trunk/runtimes/CMakeLists.txt
@@ -209,6 +209,9 @@
       if(TARGET install-${component})
         list(APPEND SUB_INSTALL_TARGETS install-${component})
       endif()
+      if(TARGET install-${component}-stripped)
+        list(APPEND SUB_INSTALL_TARGETS install-${component}-stripped)
+      endif()
     endforeach()
 
     if(LLVM_RUNTIMES_TARGET)
@@ -289,13 +292,15 @@
       else()
         add_custom_target(builtins)
         add_custom_target(install-builtins)
+        add_custom_target(install-builtins-stripped)
       endif()
 
       foreach(target ${LLVM_BUILTIN_TARGETS})
         builtin_register_target(${compiler_rt_path} ${target})
 
         add_dependencies(builtins builtins-${target})
         add_dependencies(install-builtins install-builtins-${target})
+        add_dependencies(install-builtins-stripped install-builtins-${target}-stripped)
       endforeach()
     endif()
     set(deps builtins)
@@ -331,7 +336,8 @@
     foreach(runtime_name ${runtime_names})
       list(APPEND extra_targets
         ${runtime_name}
-        install-${runtime_name})
+        install-${runtime_name}
+        install-${runtime_name}-stripped)
       if(LLVM_INCLUDE_TESTS)
         list(APPEND test_targets check-${runtime_name})
       endif()
@@ -377,7 +383,8 @@
     foreach(runtime_name ${runtime_names})
       list(APPEND ${name}_extra_targets
         "${runtime_name}:${runtime_name}-${name}"
-        "install-${runtime_name}:install-${runtime_name}-${name}")
+        "install-${runtime_name}:install-${runtime_name}-${name}"
+        "install-${runtime_name}-stripped:install-${runtime_name}-${name}-stripped")
       if(LLVM_INCLUDE_TESTS)
         list(APPEND ${name}_test_targets "check-${runtime_name}:check-${runtime_name}-${name}")
       endif()
@@ -452,6 +459,7 @@
         add_custom_target(runtimes)
         add_custom_target(runtimes-configure)
         add_custom_target(install-runtimes)
+        add_custom_target(install-runtimes-stripped)
         if(LLVM_INCLUDE_TESTS)
           add_custom_target(check-runtimes)
           add_custom_target(runtimes-test-depends)
@@ -475,6 +483,7 @@
         add_dependencies(runtimes runtimes-${name})
         add_dependencies(runtimes-configure runtimes-${name}-configure)
         add_dependencies(install-runtimes install-runtimes-${name})
+        add_dependencies(install-runtimes-stripped install-runtimes-${name}-stripped)
         if(LLVM_INCLUDE_TESTS)
           add_dependencies(check-runtimes check-runtimes-${name})
           add_dependencies(runtimes-test-depends runtimes-test-depends-${name})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40927.126191.patch
Type: text/x-patch
Size: 2751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171208/bed98b21/attachment.bin>


More information about the llvm-commits mailing list