Skip to content

Commit e100f54

Browse files
authored
[LLD][CMake][MSVC] Install PDBs alongside executables (#126680)
* Follows up on #120683 installing PDBs for LLD.
1 parent 1590ef3 commit e100f54

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)