summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-03 21:01:32 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-03 21:01:32 +0000
commit8d69414022333a5ba2700c4176e81d56c10d9458 (patch)
tree9f7149dca84e0ed8194503dde952fb0ac649325e /Makefile.rules
parent71fccadbed49b555d9582198ee58301494109410 (diff)
downloadllvm-8d69414022333a5ba2700c4176e81d56c10d9458.tar.gz
llvm-8d69414022333a5ba2700c4176e81d56c10d9458.tar.bz2
llvm-8d69414022333a5ba2700c4176e81d56c10d9458.tar.xz
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 54c378054b..c0ded8e07a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -631,6 +631,10 @@ CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
$(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \
$(CPP.BaseFlags)
+ifeq ($(INCLUDE_BUILD_DIR),1)
+ CPP.Flags += -I$(ObjDir)
+endif
+
# SHOW_DIAGNOSTICS support.
ifeq ($(SHOW_DIAGNOSTICS),1)
Compile.Wrapper := env CC_LOG_DIAGNOSTICS=1 \