-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Clang][CMake][MSVC] Install PDBs alongside executables #126961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-clang Author: Miguel A. Arroyo (mayanez) ChangesFixes the changes introduced in #126675 and subsequently reverted by #126934 . Originally, I mistakenly put the For reference:
Full diff: https://github.com/llvm/llvm-project/pull/126961.diff 1 Files Affected:
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index cdc8bd5cd503b..4059fc3e986c7 100644
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
@@ -186,6 +186,10 @@ macro(add_clang_tool name)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT ${name})
+ if (LLVM_ENABLE_PDB)
+ install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT ${name} OPTIONAL)
+ endif()
+
if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
|
|
@llvm/pr-subscribers-platform-windows Author: Miguel A. Arroyo (mayanez) ChangesFixes the changes introduced in #126675 and subsequently reverted by #126934 . Originally, I mistakenly put the For reference:
Full diff: https://github.com/llvm/llvm-project/pull/126961.diff 1 Files Affected:
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index cdc8bd5cd503b..4059fc3e986c7 100644
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
@@ -186,6 +186,10 @@ macro(add_clang_tool name)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT ${name})
+ if (LLVM_ENABLE_PDB)
+ install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT ${name} OPTIONAL)
+ endif()
+
if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
|
f316b10 to
ffb0e0c
Compare
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/11989 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/3772 Here is the relevant piece of the build log for the reference |
Fixes the changes introduced in #126675 and subsequently reverted by #126934 .
Originally, I mistakenly put the
installin the wrong location (should have been in theadd_clang_toolmacro) which slipped through testing. I've verified locally using the same CMake configure options.For reference: