An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http:
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
nginx/auto/cc

177 lines
3.8 KiB

case $CC in
*gcc)
# gcc 2.95.4, 3.3.2
# optimization
#CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
# optimize for Pentium Pro, Pentium II and Pentium III
#CFLAGS="$CFLAGS -march=pentiumpro"
# optimize for Pentium 4, gcc 3.x
#CFLAGS="$CFLAGS -march=pentium4"
# warnings
CFLAGS="$CFLAGS -O -W"
CFLAGS="$CFLAGS -Wall -Wpointer-arith"
#CFLAGS="$CFLAGS -Wconversion"
#CFLAGS="$CFLAGS -Winline"
# we have a lot of the unused function arguments
CFLAGS="$CFLAGS -Wno-unused"
# stop on warning
CFLAGS="$CFLAGS -Werror"
# ANSI C warnings
#CFLAGS="$CFLAGS -pedantic"
# debug
CFLAGS="$CFLAGS -g"
have=HAVE_GCC_VARIADIC_MACROS . auto/have
OBJEXT=o
COMPILEONLY="-c "
OBJOUT="-o "
BINOUT="-o "
CC_STRONG="$CC -Wall -Werror"
;;
*icc)
# Intel C++ compiler 7.1
# optimization
CFLAGS="$CFLAGS -O"
# optimize for Pentium Pro, Pentium II and Pentium III
CFLAGS="$CFLAGS -mcpu=pentiumpro -march=pentiumpro"
# optimize for Pentium 4, default
#CFLAGS="$CFLAGS -march=pentium4"
# warnings
CFLAGS="$CFLAGS -w1"
# stop on warning
CFLAGS="$CFLAGS -Werror"
have=HAVE_C99_VARIADIC_MACROS . auto/have
OBJEXT=o
COMPILEONLY="-c "
OBJOUT="-o "
BINOUT="-o "
CC_STRONG="$CC -w1 -Werror"
;;
cl)
# MSVC 6.0 SP2
# optimization
# maximize speed
CFLAGS="$CFLAGS -O2"
# enable global optimization
CFLAGS="$CFLAGS -Og"
# enable intrinsic functions
CFLAGS="$CFLAGS -Oi"
# inline expansion
CFLAGS="$CFLAGS -Ob1"
# enable frame pointer omission
CFLAGS="$CFLAGS -Oy"
# disable stack checking calls
CFLAGS="$CFLAGS -Gs"
# optimize for Pentium Pro
CFLAGS="$CFLAGS -G6"
# warnings
CFLAGS="$CFLAGS -W3"
#CFLAGS="$CFLAGS -W4"
# stop on warning
CFLAGS="$CFLAGS -WX"
# multithreaded
CFLAGS="$CFLAGS -MT"
# disable logo
CFLAGS="$CFLAGS -nologo"
# link flags
CORE_LINK="$CORE_LINK -link"
# msvcrt.dll
CORE_LINK="$CORE_LINK -nodefaultlib:libcmt"
# static libc
#CORE_LINK="$CORE_LINK -nodefaultlib:msvcrt"
CORE_LINK="$CORE_LINK -verbose:lib"
# debug
CFLAGS="$CFLAGS -Yd"
CORE_LINK="$CORE_LINK -debug -debugtype:coff"
OBJEXT=obj
COMPILEONLY="-c "
OBJOUT="-Fo"
BINOUT="-Fe"
CC_STRONG="$CC -W3 -WX"
;;
wcc386)
# Open Watcom 1.0
# optimization
# maximize speed
CFLAGS="$CFLAGS -ot"
# reorder instructions for best pipeline usage
CFLAGS="$CFLAGS -op"
# inline intrinsic functions
CFLAGS="$CFLAGS -oi"
# inline expansion
CFLAGS="$CFLAGS -oe"
# disable stack checking calls
CFLAGS="$CFLAGS -s"
# optimize for Pentium Pro
#CFLAGS="$CFLAGS -6r"
CFLAGS="$CFLAGS -6s"
# warnings
#CFLAGS="$CFLAGS -w3"
CFLAGS="$CFLAGS -wx"
# stop on warning
#CFLAGS="$CFLAGS -we"
# built target is NT
CFLAGS="$CFLAGS -bt=nt"
# multithreaded
CFLAGS="$CFLAGS -bm"
# debug
CFLAGS="$CFLAGS -d2"
# quiet
CFLAGS="$CFLAGS -zq"
# link traget is NT
CORE_LINK="$CORE_LINK -l=nt"
OBJEXT=obj
COMPILEONLY=
OBJOUT="-fo"
BINOUT="-fo"
INC_EQ=YES
MAKE_BS=YES
MAKE_SL=YES
;;
esac