summaryrefslogtreecommitdiffstats
path: root/lib/clang/libclangbasic
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-06-03 16:17:36 +0000
committerdim <dim@FreeBSD.org>2016-06-03 16:17:36 +0000
commit788d26643d95ac84987484d5ab4c6e76e6265a6c (patch)
tree1132a70d04514a7f33a27a625c30e8e15ca71e08 /lib/clang/libclangbasic
parentdaeae55cad78cdb8d2696aaa3ee0107351fa66c7 (diff)
downloadFreeBSD-src-788d26643d95ac84987484d5ab4c6e76e6265a6c.zip
FreeBSD-src-788d26643d95ac84987484d5ab4c6e76e6265a6c.tar.gz
For clang, move the definition of FREEBSD_CC_VERSION into its own header
file, lib/clang/freebsd_cc_version.h, instead of reusing Version.inc. The header is only included from one .cpp file in the clang tree. This minimizes the number of .cpp files that need to be rebuilt if the version is bumped. Discussed with: bdrewery
Diffstat (limited to 'lib/clang/libclangbasic')
-rw-r--r--lib/clang/libclangbasic/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile
index 028fcdb..cfa2049 100644
--- a/lib/clang/libclangbasic/Makefile
+++ b/lib/clang/libclangbasic/Makefile
@@ -50,3 +50,6 @@ TGHDRS= AttrHasAttributeImpl \
# XX: work around GCC bug 67888
CFLAGS.gcc += -fpermissive
+
+# Ensure FREEBSD_CC_VERSION is defined for Targets.cpp
+CFLAGS.Targets.cpp+= -include ../freebsd_cc_version.h
OpenPOWER on IntegriCloud