We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-DCLANG_BUILD_STATIC
1 parent eba03c4 commit 6d673bcCopy full SHA for 6d673bc
lldb/cmake/modules/AddLLDB.cmake
@@ -92,6 +92,15 @@ function(add_lldb_library name)
92
${pass_NO_INSTALL_RPATH}
93
)
94
95
+ if(MSVC)
96
+ # LLDB libraries are always linked with Clang libraries statically, so turn
97
+ # off Clang visibility macros for both the library and its consumers.
98
+ target_compile_definitions(${name} PUBLIC CLANG_BUILD_STATIC)
99
+ if(TARGET "obj.${name}")
100
+ target_compile_definitions("obj.${name}" PUBLIC CLANG_BUILD_STATIC)
101
+ endif()
102
103
+
104
if(CLANG_LINK_CLANG_DYLIB)
105
target_link_libraries(${name} PRIVATE clang-cpp)
106
else()
0 commit comments