Make sure to #include the OBJROOT config.h file, not the SRCROOT config.h file!
[oota-llvm.git] / Makefile.rules
index 796d54bcdb4c592967517c04c0beb38c5bd3fabf..47635c9b574a3619d92c2c214f8410c556b0bf7e 100644 (file)
@@ -264,11 +264,11 @@ LLVMAS  := $(LLVMTOOLCURRENT)/llvm-as
 #                          (locallly generated header files).
 # BUILD_SRC_DIR          : Files local to the particular source directory.
 # BUILD_SRC_ROOT/include : Files global to the project.
+# LLVM_OBJ_ROOT/include  : config.h files generated by autoconf
 # LEVEL/include          : config.h files for the project
 # LLVM_SRC_ROOT/include  : Files global to LLVM.
-# LLVM_OBJ_ROOT/include  : config.h files generated by autoconf
 #
-CPPFLAGS += -I$(BUILD_OBJ_DIR) -I$(BUILD_SRC_DIR) -I$(BUILD_SRC_ROOT)/include -I$(LEVEL)/include -I$(LLVM_SRC_ROOT)/include -I$(LLVM_OBJ_ROOT)/include 
+CPPFLAGS += -I$(BUILD_OBJ_DIR) -I$(BUILD_SRC_DIR) -I$(LLVM_OBJ_ROOT)/include -I$(BUILD_SRC_ROOT)/include -I$(LEVEL)/include -I$(LLVM_SRC_ROOT)/include
 
 # By default, strip symbol information from executable
 ifndef KEEP_SYMBOLS