Author: Saleem Abdulrasool Date: 2026-05-26T08:56:36Z New Revision: 48967cc1a0d4851b01b0548932ac77b86017f053
URL: https://github.com/llvm/llvm-project/commit/48967cc1a0d4851b01b0548932ac77b86017f053 DIFF: https://github.com/llvm/llvm-project/commit/48967cc1a0d4851b01b0548932ac77b86017f053.diff LOG: build: adjust LLDB and clang library naming on Windows (#185084) Ensure that use of the GNU driver does not change the library name on Windows. We would check the build tools being MSVC rather than targeting Windows to select the output name. (cherry picked from commit 687e66c989887542b1702a7a99eeaa4e25edd12e) Added: Modified: clang/tools/libclang/CMakeLists.txt lldb/source/API/CMakeLists.txt Removed: ################################################################################ diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt index b0105f5a5f79f..19011c8a64096 100644 --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -120,7 +120,7 @@ if (MSVC AND ENABLE_SHARED AND ENABLE_STATIC) unset(ENABLE_STATIC) endif() -if(MSVC) +if(WIN32 AND NOT MINGW) set(output_name "libclang") else() set(output_name "clang") diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index e27f90f2e873d..186f3b3b65299 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -265,7 +265,7 @@ elseif (LLDB_EXPORT_ALL_SYMBOLS) add_llvm_symbol_exports(liblldb ${exported_symbol_file}) endif() -if (NOT MSVC) +if(NOT WIN32 OR MINGW) set_target_properties(liblldb PROPERTIES OUTPUT_NAME lldb _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
