Skip to content

Commit a308b98

Browse files
committed
[runtimes] Support install-*-stripped targets
This is needed to support including runtime targets in LLVM_DISTRIBUTION_COMPONENTS. Differential Revision: https://reviews.llvm.org/D73252
1 parent b1da8eb commit a308b98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ else() # if this is included from LLVM's CMake
431431
foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
432432
set(${component}-${name} ${component})
433433
set(install-${component}-${name} install-${component})
434-
list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name})
434+
set(install-${component}-${name}-stripped install-${component}-stripped)
435+
list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped)
435436
endforeach()
436437

437438
if(LLVM_INCLUDE_TESTS)
@@ -525,6 +526,7 @@ else() # if this is included from LLVM's CMake
525526
foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
526527
add_custom_target(${component})
527528
add_custom_target(install-${component})
529+
add_custom_target(install-${component}-stripped)
528530
endforeach()
529531
endif()
530532
endif()

0 commit comments

Comments
 (0)