build/Make: Add support for INCLUDE_BUILD_DIR make variable, to specify that

component needs to include files from its ObjDir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2011-11-03 21:01:32 +00:00
parent 71fccadbed
commit 8d69414022

View File

@ -631,6 +631,10 @@ CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
$(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \ $(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \
$(CPP.BaseFlags) $(CPP.BaseFlags)
ifeq ($(INCLUDE_BUILD_DIR),1)
CPP.Flags += -I$(ObjDir)
endif
# SHOW_DIAGNOSTICS support. # SHOW_DIAGNOSTICS support.
ifeq ($(SHOW_DIAGNOSTICS),1) ifeq ($(SHOW_DIAGNOSTICS),1)
Compile.Wrapper := env CC_LOG_DIAGNOSTICS=1 \ Compile.Wrapper := env CC_LOG_DIAGNOSTICS=1 \