mirror of
https://github.com/nginx/nginx.git
synced 2024-12-27 17:31:35 -06:00
msvc8 compatibility: it can not build with debug under Wine
This commit is contained in:
parent
0ebcba57f0
commit
a7e01da163
@ -91,8 +91,10 @@ CORE_LIBS="$CORE_LIBS kernel32.lib user32.lib"
|
|||||||
CORE_LINK="$CORE_LINK -subsystem:windows -entry:mainCRTStartup"
|
CORE_LINK="$CORE_LINK -subsystem:windows -entry:mainCRTStartup"
|
||||||
|
|
||||||
# debug
|
# debug
|
||||||
CFLAGS="$CFLAGS -Zi"
|
if [ $NGX_CC_NAME != msvc8 ]; then
|
||||||
CORE_LINK="$CORE_LINK -debug"
|
CFLAGS="$CFLAGS -Zi"
|
||||||
|
CORE_LINK="$CORE_LINK -debug"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# precompiled headers
|
# precompiled headers
|
||||||
|
@ -25,6 +25,13 @@ fi
|
|||||||
|
|
||||||
if [ "$CC" = cl ]; then
|
if [ "$CC" = cl ]; then
|
||||||
if `$NGX_WINE $CC -v 2>&1 \
|
if `$NGX_WINE $CC -v 2>&1 \
|
||||||
|
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
|
||||||
|
>/dev/null 2>&1`; then
|
||||||
|
|
||||||
|
NGX_CC_NAME=msvc8
|
||||||
|
echo " + using Microsoft Visual C++ 8 compiler"
|
||||||
|
|
||||||
|
else if `$NGX_WINE $CC -v 2>&1 \
|
||||||
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \
|
| grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \
|
||||||
>/dev/null 2>&1`; then
|
>/dev/null 2>&1`; then
|
||||||
|
|
||||||
@ -35,6 +42,7 @@ if [ "$CC" = cl ]; then
|
|||||||
NGX_CC_NAME=msvc
|
NGX_CC_NAME=msvc
|
||||||
echo " + using Microsoft Visual C++ compiler"
|
echo " + using Microsoft Visual C++ compiler"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
if [ "$CC" = wcl386 ]; then
|
if [ "$CC" = wcl386 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user