[clang] Revert "[Clang][CMake][MSVC] Install PDBs alongside executables" (PR #126934)

Miguel A. Arroyo via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 08:07:01 PST 2025


https://github.com/mayanez created https://github.com/llvm/llvm-project/pull/126934

Reverts llvm/llvm-project#126675

Broke the following: https://lab.llvm.org/buildbot/#/builders/107/builds/7929

>From 7bc1b9a09073b6b40ce3c12134391c5697af29cf Mon Sep 17 00:00:00 2001
From: "Miguel A. Arroyo" <miguel at arroyo.me>
Date: Wed, 12 Feb 2025 08:05:36 -0800
Subject: [PATCH] Revert "[Clang][CMake][MSVC] Install PDBs alongside
 executables (#126675)"

This reverts commit acd34d90d3acd9dd260fdb93c54f70c222e26875.
---
 clang/cmake/modules/AddClang.cmake | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index 02f26b6d861ad..cdc8bd5cd503b 100644
--- a/clang/cmake/modules/AddClang.cmake
+++ b/clang/cmake/modules/AddClang.cmake
@@ -138,10 +138,6 @@ macro(add_clang_library name)
           ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
           RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
 
-        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-${lib}
                                    DEPENDS ${lib}



More information about the cfe-commits mailing list