[SVN-Commit] r1163 - trunk/Mk
svn-freebsd-gecko at chruetertee.ch
svn-freebsd-gecko at chruetertee.ch
Sat Feb 9 04:32:45 UTC 2013
Author: jbeich
Date: Sat Feb 9 04:32:38 2013
New Revision: 1163
Log:
rely on bsd.own.mk whether to use clang
clang is supposed to be stable on archs where it's built.
Modified:
trunk/Mk/bsd.gecko.mk
Modified: trunk/Mk/bsd.gecko.mk
==============================================================================
--- trunk/Mk/bsd.gecko.mk Fri Feb 8 17:53:29 2013 (r1162)
+++ trunk/Mk/bsd.gecko.mk Sat Feb 9 04:32:38 2013 (r1163)
@@ -552,16 +552,14 @@
.endif
.if ${MOZILLA_VER:R:R} >= 19 || ${MOZILLA:Mseamonkey*}
-# try clang on x86
-. if ${ARCH} == amd64 || ${ARCH} == i386
-. if ${CC} == "cc" && (exists(/usr/bin/clang) || \
- exists(${LOCALBASE}/bin/clang))
+# prefer clang
+. if ${CC} == "cc" && (exists(/usr/bin/clang) || \
+ exists(${LOCALBASE}/bin/clang))
CC= clang
-. endif
-. if ${CXX} == "c++" && (exists(/usr/bin/clang++) || \
- exists(${LOCALBASE}/bin/clang++))
+. endif
+. if ${CXX} == "c++" && (exists(/usr/bin/clang++) || \
+ exists(${LOCALBASE}/bin/clang++))
CXX= clang++
-. endif
. endif
# fallback to gcc otherwise
. if ${CC} == "cc" || ${CXX} == "c++"
More information about the freebsd-gecko
mailing list