summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
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 /Makefile.inc1
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 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 2503da3..39147a2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -99,7 +99,7 @@ _expected_compiler_type= gcc
.if ${_expected_compiler_type} == "clang"
CROSS_COMPILER_FREEBSD_VERSION!= \
awk '$$2 == "FREEBSD_CC_VERSION" {printf("%d\n", $$3)}' \
- ${SRCDIR}/lib/clang/include/clang/Basic/Version.inc || echo unknown
+ ${SRCDIR}/lib/clang/freebsd_cc_version.h || echo unknown
CROSS_COMPILER_VERSION!= \
awk '$$2 == "CLANG_VERSION" {split($$3, a, "."); print a[1] * 10000 + a[2] * 100 + a[3]}' \
${SRCDIR}/lib/clang/include/clang/Basic/Version.inc || echo unknown
OpenPOWER on IntegriCloud