forked from OSchip/llvm-project
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:
parent
65f57fe6ea
commit
9d5235d527
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -14,4 +14,6 @@
|
|||
CLANG_LEVEL := ../../..
|
||||
LIBRARYNAME := clangStaticAnalyzerFrontend
|
||||
|
||||
CPP.Flags += -I${PROJ_OBJ_DIR}/../Checkers
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
|
Loading…
Reference in New Issue