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 687e66c989)
This commit is contained in:
Saleem Abdulrasool 2026-03-10 14:32:13 -07:00 committed by Cullen Rhodes
parent 8798085803
commit 48967cc1a0
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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