[cfe-commits] r125758 - in /cfe/trunk/lib/StaticAnalyzer: Checkers/ClangSACheckers.h Frontend/CMakeLists.txt Frontend/Makefile
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Feb 17 10:40:33 PST 2011
Author: akirtzidis
Date: Thu Feb 17 12:40:33 2011
New Revision: 125758
URL: http://llvm.org/viewvc/llvm-project?rev=125758&view=rev
Log:
When building StaticAnalyzer/Frontend add -I "<Checkers build dir>" to allow Checkers.inc to be
included without '..', thus being compatible with build systems of *BSDs.
Patch by Joerg Sonnenberger!
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckers.h
cfe/trunk/lib/StaticAnalyzer/Frontend/CMakeLists.txt
cfe/trunk/lib/StaticAnalyzer/Frontend/Makefile
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckers.h?rev=125758&r1=125757&r2=125758&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckers.h (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/ClangSACheckers.h Thu Feb 17 12:40:33 2011
@@ -23,7 +23,7 @@
#define GET_CHECKERS
#define CHECKER(FULLNAME,CLASS,CXXFILE,HELPTEXT,HIDDEN) \
void register##CLASS(ExprEngine &Eng);
-#include "../Checkers/Checkers.inc"
+#include "Checkers.inc"
#undef CHECKER
#undef GET_CHECKERS
Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Frontend/CMakeLists.txt?rev=125758&r1=125757&r2=125758&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Frontend/CMakeLists.txt (original)
+++ cfe/trunk/lib/StaticAnalyzer/Frontend/CMakeLists.txt Thu Feb 17 12:40:33 2011
@@ -2,6 +2,8 @@
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
+include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../Checkers )
+
add_clang_library(clangStaticAnalyzerFrontend
AnalysisConsumer.cpp
CheckerRegistration.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Frontend/Makefile?rev=125758&r1=125757&r2=125758&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Frontend/Makefile (original)
+++ cfe/trunk/lib/StaticAnalyzer/Frontend/Makefile Thu Feb 17 12:40:33 2011
@@ -14,4 +14,6 @@
CLANG_LEVEL := ../../..
LIBRARYNAME := clangStaticAnalyzerFrontend
+CPP.Flags += -I${PROJ_OBJ_DIR}/../Checkers
+
include $(CLANG_LEVEL)/Makefile
More information about the cfe-commits
mailing list