Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 91bceea

Browse files
committed
[runtimes] Add install-*-stripped targets
These should be the only remaining missing install-*-stripped targets. They're modeled after the existing install targets. Differential Revision: https://reviews.llvm.org/D40927 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320182 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 45f64ad commit 91bceea

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: runtimes/CMakeLists.txt

+11-2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
209209
if(TARGET install-${component})
210210
list(APPEND SUB_INSTALL_TARGETS install-${component})
211211
endif()
212+
if(TARGET install-${component}-stripped)
213+
list(APPEND SUB_INSTALL_TARGETS install-${component}-stripped)
214+
endif()
212215
endforeach()
213216

214217
if(LLVM_RUNTIMES_TARGET)
@@ -289,13 +292,15 @@ else() # if this is included from LLVM's CMake
289292
else()
290293
add_custom_target(builtins)
291294
add_custom_target(install-builtins)
295+
add_custom_target(install-builtins-stripped)
292296
endif()
293297

294298
foreach(target ${LLVM_BUILTIN_TARGETS})
295299
builtin_register_target(${compiler_rt_path} ${target})
296300

297301
add_dependencies(builtins builtins-${target})
298302
add_dependencies(install-builtins install-builtins-${target})
303+
add_dependencies(install-builtins-stripped install-builtins-${target}-stripped)
299304
endforeach()
300305
endif()
301306
set(deps builtins)
@@ -331,7 +336,8 @@ else() # if this is included from LLVM's CMake
331336
foreach(runtime_name ${runtime_names})
332337
list(APPEND extra_targets
333338
${runtime_name}
334-
install-${runtime_name})
339+
install-${runtime_name}
340+
install-${runtime_name}-stripped)
335341
if(LLVM_INCLUDE_TESTS)
336342
list(APPEND test_targets check-${runtime_name})
337343
endif()
@@ -377,7 +383,8 @@ else() # if this is included from LLVM's CMake
377383
foreach(runtime_name ${runtime_names})
378384
list(APPEND ${name}_extra_targets
379385
"${runtime_name}:${runtime_name}-${name}"
380-
"install-${runtime_name}:install-${runtime_name}-${name}")
386+
"install-${runtime_name}:install-${runtime_name}-${name}"
387+
"install-${runtime_name}-stripped:install-${runtime_name}-${name}-stripped")
381388
if(LLVM_INCLUDE_TESTS)
382389
list(APPEND ${name}_test_targets "check-${runtime_name}:check-${runtime_name}-${name}")
383390
endif()
@@ -452,6 +459,7 @@ else() # if this is included from LLVM's CMake
452459
add_custom_target(runtimes)
453460
add_custom_target(runtimes-configure)
454461
add_custom_target(install-runtimes)
462+
add_custom_target(install-runtimes-stripped)
455463
if(LLVM_INCLUDE_TESTS)
456464
add_custom_target(check-runtimes)
457465
add_custom_target(runtimes-test-depends)
@@ -475,6 +483,7 @@ else() # if this is included from LLVM's CMake
475483
add_dependencies(runtimes runtimes-${name})
476484
add_dependencies(runtimes-configure runtimes-${name}-configure)
477485
add_dependencies(install-runtimes install-runtimes-${name})
486+
add_dependencies(install-runtimes-stripped install-runtimes-${name}-stripped)
478487
if(LLVM_INCLUDE_TESTS)
479488
add_dependencies(check-runtimes check-runtimes-${name})
480489
add_dependencies(runtimes-test-depends runtimes-test-depends-${name})

0 commit comments

Comments
 (0)