
This allows the clang driver to know which tool is meant to be executed, which allows the clang driver to load the right clang config files, and allows clang to find colocated sysroots. This makes sure that doing `clang-scan-deps -- <tool> ...` looks up things in the same way as if one just would execute `<tool> ...`, when `<tool>` isn't an absolute or relative path.
51 lines
973 B
CMake
51 lines
973 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Option
|
|
FrontendOpenMP
|
|
Support
|
|
TargetParser
|
|
)
|
|
|
|
add_subdirectory(Core)
|
|
add_subdirectory(Inclusions)
|
|
add_subdirectory(Refactoring)
|
|
add_subdirectory(ASTDiff)
|
|
add_subdirectory(Syntax)
|
|
add_subdirectory(DependencyScanning)
|
|
add_subdirectory(Transformer)
|
|
|
|
add_clang_library(clangTooling
|
|
AllTUsExecution.cpp
|
|
ArgumentsAdjusters.cpp
|
|
CommonOptionsParser.cpp
|
|
CompilationDatabase.cpp
|
|
Execution.cpp
|
|
ExpandResponseFilesCompilationDatabase.cpp
|
|
FileMatchTrie.cpp
|
|
FixIt.cpp
|
|
GuessTargetAndModeCompilationDatabase.cpp
|
|
InterpolatingCompilationDatabase.cpp
|
|
JSONCompilationDatabase.cpp
|
|
LocateToolCompilationDatabase.cpp
|
|
Refactoring.cpp
|
|
RefactoringCallbacks.cpp
|
|
StandaloneExecution.cpp
|
|
Tooling.cpp
|
|
|
|
DEPENDS
|
|
ClangDriverOptions
|
|
omp_gen
|
|
|
|
LINK_LIBS
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangDriver
|
|
clangFormat
|
|
clangFrontend
|
|
clangLex
|
|
clangRewrite
|
|
clangSerialization
|
|
clangToolingCore
|
|
${LLVM_PTHREAD_LIB}
|
|
)
|