[llvm-commits] [llvm] r143648 - /llvm/trunk/Makefile.rules

Daniel Dunbar daniel at zuster.org
Thu Nov 3 14:01:32 PDT 2011


Author: ddunbar
Date: Thu Nov  3 16:01:32 2011
New Revision: 143648

URL: http://llvm.org/viewvc/llvm-project?rev=143648&view=rev
Log:
build/Make: Add support for INCLUDE_BUILD_DIR make variable, to specify that
component needs to include files from its ObjDir.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=143648&r1=143647&r2=143648&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Thu Nov  3 16:01:32 2011
@@ -631,6 +631,10 @@
 	         $(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 \





More information about the llvm-commits mailing list