allow 'make CPPFLAGS=<something>' work again
authorGabor Greif <ggreif@gmail.com>
Fri, 3 Aug 2012 13:31:24 +0000 (13:31 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 3 Aug 2012 13:31:24 +0000 (13:31 +0000)
this makes this hack a bit more bearable
for poor souls who need to pass custom
preprocessor flags to the build process

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161240 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/TargetInfo/Makefile

index a101aa4a44958adb8afa2d0bcc64ed5424a88195..2d0560d275f971baf0aaf0eb7b3696748efc15de 100644 (file)
@@ -10,6 +10,6 @@ LEVEL = ../../../..
 LIBRARYNAME = LLVMPowerPCInfo
 
 # Hack: we need to include 'main' target directory to grab private headers
-CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
+override CPPFLAGS += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
 
 include $(LEVEL)/Makefile.common