Skip to content

Commit 687e66c

Browse files
authored
build: adjust LLDB and clang library naming on Windows (llvm#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.
1 parent 67094a4 commit 687e66c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

clang/tools/libclang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if (MSVC AND ENABLE_SHARED AND ENABLE_STATIC)
121121
unset(ENABLE_STATIC)
122122
endif()
123123

124-
if(MSVC)
124+
if(WIN32 AND NOT MINGW)
125125
set(output_name "libclang")
126126
else()
127127
set(output_name "clang")

lldb/source/API/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ elseif (LLDB_EXPORT_ALL_SYMBOLS)
216216
add_llvm_symbol_exports(liblldb ${exported_symbol_file})
217217
endif()
218218

219-
if (NOT MSVC)
219+
if(NOT WIN32 OR MINGW)
220220
set_target_properties(liblldb
221221
PROPERTIES
222222
OUTPUT_NAME lldb

0 commit comments

Comments
 (0)