Skip to content

Commit fbdc721

Browse files
mayanezsivan-shani
authored andcommitted
[LLD][CMake][MSVC] Install PDBs alongside executables (llvm#126680)
* Follows up on llvm#120683 installing PDBs for LLD.
1 parent 49ef441 commit fbdc721

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lld/cmake/modules/AddLLD.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ macro(add_lld_tool name)
5858
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
5959
COMPONENT ${name})
6060

61+
if (LLVM_ENABLE_PDB)
62+
install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT ${name} OPTIONAL)
63+
endif()
64+
6165
if(NOT CMAKE_CONFIGURATION_TYPES)
6266
add_llvm_install_targets(install-${name}
6367
DEPENDS ${name}

0 commit comments

Comments
 (0)