diff options
Diffstat (limited to 'unittests/Frontend')
-rw-r--r-- | unittests/Frontend/CMakeLists.txt | 13 | ||||
-rw-r--r-- | unittests/Frontend/FrontendActionTest.cpp | 1 | ||||
-rw-r--r-- | unittests/Frontend/Makefile | 3 |
3 files changed, 16 insertions, 1 deletions
diff --git a/unittests/Frontend/CMakeLists.txt b/unittests/Frontend/CMakeLists.txt new file mode 100644 index 0000000..139cf42 --- /dev/null +++ b/unittests/Frontend/CMakeLists.txt @@ -0,0 +1,13 @@ +set(LLVM_LINK_COMPONENTS + ${LLVM_TARGETS_TO_BUILD} + asmparser + support + mc + ) + +add_clang_unittest(FrontendTests + FrontendActionTest.cpp + ) +target_link_libraries(FrontendTests + clangFrontend + ) diff --git a/unittests/Frontend/FrontendActionTest.cpp b/unittests/Frontend/FrontendActionTest.cpp index 2d4befc..84a6545 100644 --- a/unittests/Frontend/FrontendActionTest.cpp +++ b/unittests/Frontend/FrontendActionTest.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "clang/AST/RecursiveASTVisitor.h" +#include "clang/AST/ASTContext.h" #include "clang/AST/ASTConsumer.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/CompilerInvocation.h" diff --git a/unittests/Frontend/Makefile b/unittests/Frontend/Makefile index f3e6396..bfc3494 100644 --- a/unittests/Frontend/Makefile +++ b/unittests/Frontend/Makefile @@ -9,7 +9,8 @@ CLANG_LEVEL = ../.. TESTNAME = Frontend -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ |