[cfe-commits] [PATCH] Add CMake support to the clang unittests (issue4152043)

NAKAMURA Takumi geek4civic at gmail.com
Wed Feb 9 20:19:47 PST 2011


Jeffrey, thank you to work on!

I can build and run FrontendTests to add some libs.

--- a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -46,10 +46,11 @@ set(LLVM_LINK_COMPONENTS
 set(LLVM_USED_LIBS
   gtest
   gtest_main
-  LLVMSupport # gtest needs it for raw_ostream.
-  clangAST
   clangFrontend
   clangSerialization
+  clangAST
+  clangLex
+  clangBasic
   )

 add_clang_unittest(Frontend

I have confirmed on CentOS5, msys-mingw and msvs10.

A matter. With this patch, "standalone clang with cmake" cannot be built.
gtest headers would be needed. Any idea? For now disabling unittests
on standalone clang?

...Takumi



More information about the cfe-commits mailing list