diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-11-03 21:01:32 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-11-03 21:01:32 +0000 |
commit | 8d69414022333a5ba2700c4176e81d56c10d9458 (patch) | |
tree | 9f7149dca84e0ed8194503dde952fb0ac649325e | |
parent | 71fccadbed49b555d9582198ee58301494109410 (diff) |
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
-rw-r--r-- | Makefile.rules | 4 |
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 \ |