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)
14891489 ${export_to_llvmexports}
14901490 RUNTIME DESTINATION ${${project} _TOOLS_INSTALL_DIR}
14911491 COMPONENT ${name} )
1492+ if (MSVC )
1493+ install (FILES $<TARGET_PDB_FILE:${name} >
1494+ DESTINATION "${${project} _TOOLS_INSTALL_DIR}" COMPONENT ${name}
1495+ OPTIONAL )
1496+ endif ()
14921497
14931498 if (NOT LLVM_ENABLE_IDE)
14941499 add_llvm_install_targets(install -${name}
@@ -1519,6 +1524,11 @@ macro(add_llvm_example name)
15191524 add_llvm_executable(${name} EXPORT_SYMBOLS ${ARGN} )
15201525 if ( LLVM_BUILD_EXAMPLES )
15211526 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 ()
15221532 endif ()
15231533 get_subproject_title(subproject_title)
15241534 set_target_properties (${name} PROPERTIES FOLDER "${subproject_title} /Examples" )
@@ -1553,6 +1563,11 @@ macro(add_llvm_utility name)
15531563 ${export_to_llvmexports}
15541564 RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}
15551565 COMPONENT ${name} )
1566+ if (MSVC )
1567+ install (FILES $<TARGET_PDB_FILE:${name} >
1568+ DESTINATION "${LLVM_UTILS_INSTALL_DIR} " COMPONENT ${name}
1569+ OPTIONAL )
1570+ endif ()
15561571
15571572 if (NOT LLVM_ENABLE_IDE)
15581573 add_llvm_install_targets(install -${name}
You can’t perform that action at this time.
0 commit comments