You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2011/12/07 14:35:41 UTC
svn commit: r1211432 - /trafficserver/traffic/trunk/configure.ac
Author: igalic
Date: Wed Dec 7 13:35:40 2011
New Revision: 1211432
URL: http://svn.apache.org/viewvc?rev=1211432&view=rev
Log:
Bring the possibility to build with clang.
n.b.: Right now, this does not work, because our code has long since
(v2.1.4/TS-427) parted with clang compatibility.
XXX: Why are we not checking for clang on darwin? Isn't XCode the
default.. thing? Doesn't it come with clang? How often more will I
write clang in this commit message? Questions...
Modified:
trafficserver/traffic/trunk/configure.ac
Modified: trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/configure.ac?rev=1211432&r1=1211431&r2=1211432&view=diff
==============================================================================
--- trafficserver/traffic/trunk/configure.ac (original)
+++ trafficserver/traffic/trunk/configure.ac Wed Dec 7 13:35:40 2011
@@ -544,7 +544,8 @@ base_cc=`basename $CC`
# These are shortcuts used in combination for the compiler options below
case $host_os in
linux*)
- if test "x${base_cc}" = "xicc"; then
+ case $base_cc in
+ icc)
# -Wall goes crazy, so turned these specific checks off for now:
#
# 111 is "statement is unrecahable"
@@ -566,15 +567,22 @@ case $host_os in
debug_opt="-ggdb3 $common_opt"
release_opt="-g $common_opt $optimization_flags -axsse4.2 -fno-strict-aliasing"
cxx_opt="-Wno-invalid-offsetof"
- else # gcc
+ ;;
+ clang)
+ debug_opt="-ggdb3 $common_opt -Qunused-arguments"
+ release_opt="-g $common_opt $optimizing_flags -feliminate-unused-debug-symbols -fno-strict-aliasing -Qunused-arguments"
+ cxx_opt="-Wno-invalid-offsetof -Qunused-arguments"
+ ;;
+ *) # gcc
# This is useful for finding odd conversions
# common_opt="-pipe -Wall -Werror -Wconversion -Wno-sign-conversion"
common_opt="-pipe -Wall -Werror"
debug_opt="-ggdb3 $common_opt"
release_opt="-g $common_opt $optimizing_flags -feliminate-unused-debug-symbols -fno-strict-aliasing"
cxx_opt="-Wno-invalid-offsetof"
- fi
- ;;
+ ;;
+ esac
+ ;; # linux*)
darwin*)
common_opt="-pipe -Wall -Werror -Wno-deprecated-declarations"
debug_opt="-ggdb3 $common_opt"