aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2013-03-28 22:49:49 +0000
committerAndrew Turner <andrew@FreeBSD.org>2013-03-28 22:49:49 +0000
commitcfa9e283e091ff7e6d1d88e0f9772cef08c3d933 (patch)
treef50d41deb02672a29922ef9d698c60f51ca5b091
parent66f71b7d24d524594852b386721a50d5c3f41cfa (diff)
downloadsrc-cfa9e283e091ff7e6d1d88e0f9772cef08c3d933.tar.gz
src-cfa9e283e091ff7e6d1d88e0f9772cef08c3d933.zip
Welcome clang as the default compiler on ARM.
Change the default compiler for little-endian ARM to clang to allow for more testing before 10.0 is released. As LLVM and clang currnetly lack support for big-endian ARM leave gcc as the default there. This will also allow us to investigate moving to use the hard floating-point version of the ARM EABI on SoCs that include the Vector Floating Point unit. A version of this is included in all ARMv6 and ARMv7 SoCs we currently, and are likely to support. Both the current ABI and the new EABI are supported by clang and it will be built correctly depending on which is selected by the user.
Notes
Notes: svn path=/head/; revision=248856
-rw-r--r--share/mk/bsd.own.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index f1a15d6a4502..367d24885fd6 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -401,8 +401,9 @@ __DEFAULT_NO_OPTIONS+=CLANG_FULL
.else
__DEFAULT_NO_OPTIONS+=CLANG CLANG_FULL
.endif
-# Clang the default system compiler only on x86.
-.if ${__T} == "amd64" || ${__T} == "i386"
+# Clang the default system compiler only on little-endian arm and x86.
+.if ${__T} == "amd64" || ${__T} == "arm" || ${__T} == "armv6" || \
+ ${__T} == "i386"
__DEFAULT_YES_OPTIONS+=CLANG_IS_CC
.else
__DEFAULT_NO_OPTIONS+=CLANG_IS_CC