diff configure @ 31803:53145096892e

Default to -O2 optimization level for the clang compiler. patch by Rowan James, rowanj phere net
author diego
date Sat, 31 Jul 2010 22:15:49 +0000
parents be181a23c432
children b116b1a5a25e
line wrap: on
line diff
--- a/configure	Sat Jul 31 22:02:55 2010 +0000
+++ b/configure	Sat Jul 31 22:15:49 2010 +0000
@@ -2553,6 +2553,8 @@
     CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
   elif test "$cc_vendor" = "sun" ; then
     CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr"
+  elif test "$cc_vendor" = "clang"; then
+    CFLAGS="-O2 $_march $_pipe"
   elif test "$cc_vendor" != "gnu" ; then
     CFLAGS="-O2 $_march $_mcpu $_pipe"
   else