123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- NGX_ICC_VER=`$CC -V 2>&1 | grep 'Version' 2>&1 \
- | sed -e 's/^.* Version \([^ ]*\) *Build.*$/\1/'`
- echo " + icc version: $NGX_ICC_VER"
- have=NGX_COMPILER value="\"Intel C Compiler $NGX_ICC_VER\"" . auto/define
- CFLAGS="$CFLAGS -O"
- CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"
- case $CPU in
- pentium)
- # optimize for Pentium and Athlon
- CPU_OPT="-march=pentium"
- ;;
- pentiumpro)
- # optimize for Pentium Pro, Pentium II and Pentium III
- CPU_OPT="-mcpu=pentiumpro -march=pentiumpro"
- ;;
- pentium4)
- # optimize for Pentium 4, default
- CPU_OPT="-march=pentium4"
- ;;
- esac
- CFLAGS="$CFLAGS $CPU_OPT"
- if [ ".$PCRE_OPT" = "." ]; then
- PCRE_OPT="-O $CPU_OPT"
- fi
- if [ ".$ZLIB_OPT" = "." ]; then
- ZLIB_OPT="-O $CPU_OPT"
- fi
- CFLAGS="$CFLAGS -w2"
- CFLAGS="$CFLAGS -wd171"
- CFLAGS="$CFLAGS -wd181"
- CFLAGS="$CFLAGS -wd193"
- CFLAGS="$CFLAGS -wd268"
- CFLAGS="$CFLAGS -wd269"
- CFLAGS="$CFLAGS -wd810"
- CFLAGS="$CFLAGS -wd869"
- CFLAGS="$CFLAGS -wd1301"
- CFLAGS="$CFLAGS -wd188"
- CFLAGS="$CFLAGS -wd279"
- CFLAGS="$CFLAGS -wd981"
- CFLAGS="$CFLAGS -wd1418"
- CFLAGS="$CFLAGS -wd1419"
- case "$NGX_ICC_VER" in
- 9.*)
- # "cc" clobber ignored, warnings for Linux's htonl()/htons()
- CFLAGS="$CFLAGS -wd1469"
- # explicit conversion of a 64-bit integral type to a smaller
- # integral type
- CFLAGS="$CFLAGS -wd1683"
- # conversion from pointer to same-sized integral type,
- # warning on offsetof()
- CFLAGS="$CFLAGS -wd1684"
- # floating-point equality and inequality comparisons are unreliable,
- # warning on SvTRUE()
- CFLAGS="$CFLAGS -wd1572"
- ;;
- 8.*)
- # "cc" clobber ignored, warnings for Linux's htonl()/htons()
- CFLAGS="$CFLAGS -wd1469"
- # floating-point equality and inequality comparisons are unreliable,
- # warning on SvTRUE()
- CFLAGS="$CFLAGS -wd1572"
- ;;
- *)
- ;;
- esac
- CFLAGS="$CFLAGS -Werror"
- CFLAGS="$CFLAGS -g"
|