https://github.com/c-rhodes updated https://github.com/llvm/llvm-project/pull/197493
>From 48967cc1a0d4851b01b0548932ac77b86017f053 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool <[email protected]> Date: Tue, 10 Mar 2026 14:32:13 -0700 Subject: [PATCH] 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) --- clang/tools/libclang/CMakeLists.txt | 2 +- lldb/source/API/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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
