[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] c85b3ea If we have a CLANG compiler,
From:       phk () varnish-cache ! org (Poul-Henning Kamp)
Date:       2011-02-28 21:47:24
Message-ID: E1PuAw8-0001g9-5U () project ! varnish-software ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic