Commit a308b98e authored by Shoaib Meenai's avatar Shoaib Meenai
Browse files

[runtimes] Support install-*-stripped targets

This is needed to support including runtime targets in
LLVM_DISTRIBUTION_COMPONENTS.

Differential Revision: https://reviews.llvm.org/D73252
parent b1da8eba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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()