[clangd] Move non-clang base pieces into separate support/ lib. NFCI
Summary:
This enforces layering, reduces a sprawling clangd/ directory, and makes life
easier for embedders.
Reviewers: kbobyrev
Subscribers: mgorny, ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, jfb, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79014
2020-04-28 23:49:17 +08:00
|
|
|
# clangd/support contains low-level support libraries that do not depend
|
|
|
|
# on clang either programmatically or conceptually.
|
|
|
|
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
|
|
|
if(CLANG_BUILT_STANDALONE)
|
|
|
|
# needed to get HAVE_CXX_ATOMICS64_WITHOUT_LIB defined
|
|
|
|
include(CheckAtomic)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(CLANGD_ATOMIC_LIB "")
|
|
|
|
if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
|
|
|
|
list(APPEND CLANGD_ATOMIC_LIB "atomic")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(..)
|
|
|
|
add_clang_library(clangdSupport
|
|
|
|
Cancellation.cpp
|
|
|
|
Context.cpp
|
|
|
|
Logger.cpp
|
2020-05-02 20:53:47 +08:00
|
|
|
Markup.cpp
|
[clangd] Move non-clang base pieces into separate support/ lib. NFCI
Summary:
This enforces layering, reduces a sprawling clangd/ directory, and makes life
easier for embedders.
Reviewers: kbobyrev
Subscribers: mgorny, ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, jfb, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79014
2020-04-28 23:49:17 +08:00
|
|
|
Shutdown.cpp
|
|
|
|
Threading.cpp
|
2020-06-17 17:53:32 +08:00
|
|
|
ThreadsafeFS.cpp
|
[clangd] Move non-clang base pieces into separate support/ lib. NFCI
Summary:
This enforces layering, reduces a sprawling clangd/ directory, and makes life
easier for embedders.
Reviewers: kbobyrev
Subscribers: mgorny, ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, jfb, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79014
2020-04-28 23:49:17 +08:00
|
|
|
Trace.cpp
|
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
${LLVM_PTHREAD_LIB}
|
|
|
|
${CLANGD_ATOMIC_LIB}
|
|
|
|
)
|