Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2013 04:32:38 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r1163 - trunk/Mk
Message-ID:  <201302090432.r194WcmB072666@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
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++"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302090432.r194WcmB072666>