[llvm] a308b98 - [runtimes] Support install-*-stripped targets

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 17:00:52 PST 2020


Author: Shoaib Meenai
Date: 2020-01-27T17:00:24-08:00
New Revision: a308b98ecbb03820e3b30cc1323493ac21a6040e

URL: https://github.com/llvm/llvm-project/commit/a308b98ecbb03820e3b30cc1323493ac21a6040e
DIFF: https://github.com/llvm/llvm-project/commit/a308b98ecbb03820e3b30cc1323493ac21a6040e.diff

LOG: [runtimes] Support install-*-stripped targets

This is needed to support including runtime targets in
LLVM_DISTRIBUTION_COMPONENTS.

Differential Revision: https://reviews.llvm.org/D73252

Added: 
    

Modified: 
    llvm/runtimes/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index f010b76a81d6..22145b235774 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -431,7 +431,8 @@ else() # if this is included from LLVM's CMake
     foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
       set(${component}-${name} ${component})
       set(install-${component}-${name} install-${component})
-      list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name})
+      set(install-${component}-${name}-stripped install-${component}-stripped)
+      list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped)
     endforeach()
 
     if(LLVM_INCLUDE_TESTS)
@@ -525,6 +526,7 @@ else() # if this is included from LLVM's CMake
           foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
             add_custom_target(${component})
             add_custom_target(install-${component})
+            add_custom_target(install-${component}-stripped)
           endforeach()
         endif()
       endif()


        


More information about the llvm-commits mailing list