File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,13 @@ macro(add_clang_library name)
109
109
llvm_add_library (${name} ${LIBTYPE} ${ARG_UNPARSED_ARGUMENTS} ${srcs} )
110
110
111
111
if (MSVC AND NOT CLANG_LINK_CLANG_DYLIB )
112
- # Make sure all consumers also turn off visibility macros so they're not
113
- # trying to dllimport symbols.
112
+ # Make sure all consumers also turn off visibility macros so there not trying to dllimport symbols.
114
113
target_compile_definitions (${name} PUBLIC CLANG_BUILD_STATIC )
115
114
if (TARGET "obj.${name} " )
116
115
target_compile_definitions ("obj.${name} " PUBLIC CLANG_BUILD_STATIC )
117
116
endif ()
118
- elseif (TARGET "obj. ${name} " AND NOT ARG_SHARED AND NOT ARG_STATIC )
119
- # Clang component libraries linked to clang-cpp are declared without SHARED or STATIC
117
+ elseif (NOT ARG_SHARED AND NOT ARG_STATIC )
118
+ # Clang component libraries linked in to clang-cpp are declared without SHARED or STATIC
120
119
target_compile_definitions ("obj.${name} " PUBLIC CLANG_EXPORTS )
121
120
endif ()
122
121
You can’t perform that action at this time.
0 commit comments