summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2012-11-05 19:08:18 +0000
committerbrooks <brooks@FreeBSD.org>2012-11-05 19:08:18 +0000
commit78e7d864ca1b0c2d38ffd03eeb39a9e2ce7f302f (patch)
treef0ce51c7dba34baa8a9266683a7181e32fdc8f51
parent04703cf7a9873a9b98bdf81ca1dfb5ad6c8ef4f4 (diff)
downloadFreeBSD-src-78e7d864ca1b0c2d38ffd03eeb39a9e2ce7f302f.zip
FreeBSD-src-78e7d864ca1b0c2d38ffd03eeb39a9e2ce7f302f.tar.gz
After years of hard work by many FreeBSD and LLVM developers, make
clang the default compiler on i386 and amd64 systems. Special thanks to: dim, ed, rdivacky
-rw-r--r--UPDATING7
-rw-r--r--share/mk/bsd.own.mk7
-rw-r--r--sys/sys/param.h2
3 files changed, 14 insertions, 2 deletions
diff --git a/UPDATING b/UPDATING
index 0db0c5c..92b1ee8 100644
--- a/UPDATING
+++ b/UPDATING
@@ -24,6 +24,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10.x IS SLOW:
disable the most expensive debugging functionality run
"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
+20121105:
+ On i386 and amd64 systems WITH_CLANG_IS_CC is now the default.
+ This means that the world and kernel will be compiled with clang
+ and that clang will be installed as /usr/bin/cc, /usr/bin/c++,
+ and /usr/bin/cpp. To disable this behavior and revert to building
+ with gcc, compiler with WITHOUT_CLANG_IS_CC.
+
20121102:
The IPFIREWALL_FORWARD kernel option has been removed. Its
functionality now turned on by default.
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 3a2658c..f70eacc 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -426,7 +426,6 @@ __DEFAULT_NO_OPTIONS = \
BIND_XML \
BSDCONFIG \
CLANG_EXTRAS \
- CLANG_IS_CC \
CTF \
HESIOD \
ICONV \
@@ -455,6 +454,12 @@ __DEFAULT_YES_OPTIONS+=CLANG
.else
__DEFAULT_NO_OPTIONS+=CLANG
.endif
+# Clang the default system compiler only on x86.
+.if ${__T} == "amd64" || ${__T} == "i386"
+__DEFAULT_YES_OPTIONS+=CLANG_IS_CC
+.else
+__DEFAULT_NO_OPTIONS+=CLANG_IS_CC
+.endif
# FDT is needed only for arm, mips and powerpc
.if ${__T:Marm*} || ${__T:Mpowerpc*} || ${__T:Mmips*}
__DEFAULT_YES_OPTIONS+=FDT
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 161f9ad..0d16ddf 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -58,7 +58,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1000023 /* Master, propagated to newvers */
+#define __FreeBSD_version 1000024 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
OpenPOWER on IntegriCloud