comparison 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
comparison
equal deleted inserted replaced
31802:ee06f753ae93 31803:53145096892e
2551 elif test -z "$CFLAGS" ; then 2551 elif test -z "$CFLAGS" ; then
2552 if test "$cc_vendor" = "intel" ; then 2552 if test "$cc_vendor" = "intel" ; then
2553 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144" 2553 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
2554 elif test "$cc_vendor" = "sun" ; then 2554 elif test "$cc_vendor" = "sun" ; then
2555 CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr" 2555 CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr"
2556 elif test "$cc_vendor" = "clang"; then
2557 CFLAGS="-O2 $_march $_pipe"
2556 elif test "$cc_vendor" != "gnu" ; then 2558 elif test "$cc_vendor" != "gnu" ; then
2557 CFLAGS="-O2 $_march $_mcpu $_pipe" 2559 CFLAGS="-O2 $_march $_mcpu $_pipe"
2558 else 2560 else
2559 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" 2561 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
2560 extra_ldflags="$extra_ldflags -ffast-math" 2562 extra_ldflags="$extra_ldflags -ffast-math"