summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-08 20:44:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-08 20:44:43 +0000
commitc4dec1c58eeb2ef46cdb64120eb6b819c6927afb (patch)
tree5d8efb198f94c901cbafb87761d0b3cfdf3f1415 /Makefile
parentafed099bd2e759efd4bb63fdc525d3445f94cc13 (diff)
downloadclang-c4dec1c58eeb2ef46cdb64120eb6b819c6927afb.tar.gz
Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b2a365f97..acb620dddd 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,12 @@ LEVEL := $(CLANG_LEVEL)/../..
# Include LLVM common makefile.
include $(LEVEL)/Makefile.common
+# Set common Clang build flags.
+CPP.Flags += -I$(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include -I$(PROJ_OBJ_DIR)/$(CLANG_LEVEL)/include
+ifdef CLANG_VENDOR
+CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
+endif
+
###
# Clang Top Level specific stuff.