[master] c85b3ea If we have a CLANG compiler, use it in the absense of any preferences.

Poul-Henning Kamp phk at varnish-cache.org
Mon Feb 28 22:47:24 CET 2011


commit c85b3ea54cbcab0c9807888cca93b0e60acbabc7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 28 21:46:35 2011 +0000

    If we have a CLANG compiler, use it in the absense of any preferences.
    
    This only affects development environments on FreeBSD, but hopefully
    exposing the Varnish source code to yet another compiler will help
    expose bugs.

diff --git a/autogen.des b/autogen.des
index b220566..0c272bc 100755
--- a/autogen.des
+++ b/autogen.des
@@ -5,6 +5,12 @@
 
 set -ex
 
+# Prefer CLANG if we have it, and have not given preferences
+if [ -f /usr/bin/clang -a "x${CC}" = "x" ] ; then
+	CC=clang
+	export CC
+fi
+
 . ./autogen.sh
 
 # autoconf prior to 2.62 has issues with zsh 4.2 and newer



More information about the varnish-commit mailing list