@@ -209,6 +209,9 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
209
209
if (TARGET install -${component} )
210
210
list (APPEND SUB_INSTALL_TARGETS install -${component} )
211
211
endif ()
212
+ if (TARGET install -${component} -stripped)
213
+ list (APPEND SUB_INSTALL_TARGETS install -${component} -stripped)
214
+ endif ()
212
215
endforeach ()
213
216
214
217
if (LLVM_RUNTIMES_TARGET)
@@ -289,13 +292,15 @@ else() # if this is included from LLVM's CMake
289
292
else ()
290
293
add_custom_target (builtins)
291
294
add_custom_target (install -builtins)
295
+ add_custom_target (install -builtins-stripped)
292
296
endif ()
293
297
294
298
foreach (target ${LLVM_BUILTIN_TARGETS} )
295
299
builtin_register_target(${compiler_rt_path} ${target} )
296
300
297
301
add_dependencies (builtins builtins-${target} )
298
302
add_dependencies (install -builtins install -builtins-${target} )
303
+ add_dependencies (install -builtins-stripped install -builtins-${target} -stripped)
299
304
endforeach ()
300
305
endif ()
301
306
set (deps builtins)
@@ -331,7 +336,8 @@ else() # if this is included from LLVM's CMake
331
336
foreach (runtime_name ${runtime_names} )
332
337
list (APPEND extra_targets
333
338
${runtime_name}
334
- install -${runtime_name} )
339
+ install -${runtime_name}
340
+ install -${runtime_name} -stripped)
335
341
if (LLVM_INCLUDE_TESTS)
336
342
list (APPEND test_targets check-${runtime_name} )
337
343
endif ()
@@ -377,7 +383,8 @@ else() # if this is included from LLVM's CMake
377
383
foreach (runtime_name ${runtime_names} )
378
384
list (APPEND ${name} _extra_targets
379
385
"${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" )
381
388
if (LLVM_INCLUDE_TESTS)
382
389
list (APPEND ${name} _test_targets "check-${runtime_name} :check-${runtime_name} -${name} " )
383
390
endif ()
@@ -452,6 +459,7 @@ else() # if this is included from LLVM's CMake
452
459
add_custom_target (runtimes)
453
460
add_custom_target (runtimes-configure)
454
461
add_custom_target (install -runtimes)
462
+ add_custom_target (install -runtimes-stripped)
455
463
if (LLVM_INCLUDE_TESTS)
456
464
add_custom_target (check-runtimes)
457
465
add_custom_target (runtimes-test -depends )
@@ -475,6 +483,7 @@ else() # if this is included from LLVM's CMake
475
483
add_dependencies (runtimes runtimes-${name} )
476
484
add_dependencies (runtimes-configure runtimes-${name} -configure)
477
485
add_dependencies (install -runtimes install -runtimes-${name} )
486
+ add_dependencies (install -runtimes-stripped install -runtimes-${name} -stripped)
478
487
if (LLVM_INCLUDE_TESTS)
479
488
add_dependencies (check-runtimes check-runtimes-${name} )
480
489
add_dependencies (runtimes-test -depends runtimes-test -depends -${name} )
0 commit comments