File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,19 @@ function(add_lldb_library name)
92
92
${pass_NO_INSTALL_RPATH}
93
93
)
94
94
95
+ if (MSVC AND NOT CLANG_LINK_CLANG_DYLIB )
96
+ # Make sure all consumers also turn off visibility macros so the're not
97
+ # trying to dllimport symbols.
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
+ elseif (NOT PARAM_SHARED AND NOT PARAM_STATIC )
103
+ # lldb component libraries linked in to clang-cpp are declared without
104
+ # SHARED or STATIC.
105
+ target_compile_definitions ("obj.${name} " PUBLIC CLANG_EXPORTS )
106
+ endif ()
107
+
95
108
if (CLANG_LINK_CLANG_DYLIB )
96
109
target_link_libraries (${name} PRIVATE clang-cpp )
97
110
else ()
You can’t perform that action at this time.
0 commit comments