File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set(LLVM_LINK_COMPONENTS
11
11
# To enable these tweaks in executables or shared libraries, add
12
12
# $<TARGET_OBJECTS:obj.clangDaemonTweaks> to a list of sources, see
13
13
# clangd/tool/CMakeLists.txt for an example.
14
- add_clang_library(clangDaemonTweaks CLANG_IMPORT OBJECT
14
+ add_clang_library(clangDaemonTweaks OBJECT
15
15
AddUsing.cpp
16
16
AnnotateHighlightings.cpp
17
17
DumpAST.cpp
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ endmacro()
47
47
48
48
macro (add_clang_library name )
49
49
cmake_parse_arguments (ARG
50
- "SHARED;STATIC;INSTALL_WITH_TOOLCHAIN;CLANG_IMPORT "
50
+ "SHARED;STATIC;OBJECT; INSTALL_WITH_TOOLCHAIN;CLANG_EXPORT "
51
51
""
52
52
"ADDITIONAL_HEADERS"
53
53
${ARGN} )
@@ -114,7 +114,7 @@ macro(add_clang_library name)
114
114
if (TARGET "obj.${name} " )
115
115
target_compile_definitions ("obj.${name} " PUBLIC CLANG_BUILD_STATIC)
116
116
endif ()
117
- elseif (NOT ARG_SHARED AND NOT ARG_STATIC AND NOT ARG_CLANG_IMPORT )
117
+ elseif (ARG_CLANG_EXPORT OR NOT ( ARG_SHARED OR ARG_STATIC OR ARG_OBJECT) )
118
118
# Clang component libraries linked in to clang-cpp are declared without SHARED or STATIC
119
119
target_compile_definitions ("obj.${name} " PUBLIC CLANG_EXPORTS)
120
120
endif ()
You can’t perform that action at this time.
0 commit comments