File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1489,6 +1489,11 @@ macro(llvm_add_tool project name)
1489
1489
${export_to_llvmexports}
1490
1490
RUNTIME DESTINATION ${${project} _TOOLS_INSTALL_DIR}
1491
1491
COMPONENT ${name} )
1492
+ if (MSVC)
1493
+ install(FILES $<TARGET_PDB_FILE:${name} >
1494
+ DESTINATION " ${${project}_TOOLS_INSTALL_DIR} " COMPONENT ${name}
1495
+ OPTIONAL)
1496
+ endif()
1492
1497
1493
1498
if (NOT LLVM_ENABLE_IDE)
1494
1499
add_llvm_install_targets(install-${name}
@@ -1519,6 +1524,11 @@ macro(add_llvm_example name)
1519
1524
add_llvm_executable(${name} EXPORT_SYMBOLS ${ARGN} )
1520
1525
if( LLVM_BUILD_EXAMPLES )
1521
1526
install(TARGETS ${name} RUNTIME DESTINATION " ${LLVM_EXAMPLES_INSTALL_DIR} ")
1527
+ if (MSVC)
1528
+ install(FILES $<TARGET_PDB_FILE:${name} >
1529
+ DESTINATION " ${LLVM_EXAMPLES_INSTALL_DIR} " COMPONENT ${name}
1530
+ OPTIONAL)
1531
+ endif()
1522
1532
endif()
1523
1533
get_subproject_title(subproject_title)
1524
1534
set_target_properties(${name} PROPERTIES FOLDER " ${subproject_title} /Examples ")
@@ -1553,6 +1563,11 @@ macro(add_llvm_utility name)
1553
1563
${export_to_llvmexports}
1554
1564
RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}
1555
1565
COMPONENT ${name} )
1566
+ if (MSVC)
1567
+ install(FILES $<TARGET_PDB_FILE:${name} >
1568
+ DESTINATION " ${LLVM_UTILS_INSTALL_DIR} " COMPONENT ${name}
1569
+ OPTIONAL)
1570
+ endif()
1556
1571
1557
1572
if (NOT LLVM_ENABLE_IDE)
1558
1573
add_llvm_install_targets(install-${name}
You can’t perform that action at this time.
0 commit comments