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!

llvm-svn: 125758
This commit is contained in:
Argyrios Kyrtzidis 2011-02-17 18:40:33 +00:00
parent 65f57fe6ea
commit 9d5235d527
3 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class ExprEngine;
#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

View File

@ -2,6 +2,8 @@ set(LLVM_NO_RTTI 1)
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../Checkers )
add_clang_library(clangStaticAnalyzerFrontend
AnalysisConsumer.cpp
CheckerRegistration.cpp

View File

@ -14,4 +14,6 @@
CLANG_LEVEL := ../../..
LIBRARYNAME := clangStaticAnalyzerFrontend
CPP.Flags += -I${PROJ_OBJ_DIR}/../Checkers
include $(CLANG_LEVEL)/Makefile