Use -O2 option when compiling with MSVC

Change-Id: Ia2c14b782b1a73ecab41c25ed21e4fcf356f5ee3
Reviewed-on: https://code.wireshark.org/review/1948
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Pascal Quantin 2014-06-04 16:27:44 +02:00 committed by Anders Broman
parent 4b9b29b627
commit a4c306185b
1 changed files with 6 additions and 3 deletions

View File

@ -994,13 +994,16 @@ APPVER=5.02
# This definition prevents the complaint about the redefinition of inline by WinPCap
# in pcap-stdinc.h when compiling CPP files, e.g. the QT UI
#
# -Ox http://msdn.microsoft.com/en-us/library/59a3b321.aspx
# Specifying the /Ox compiler option is the same as using the following options:
# -O2 http://msdn.microsoft.com/en-us/library/8f8h5cxt.aspx
# Specifying the /O2 compiler option is the same as using the following options:
# /Ob (Inline Function Expansion), where the option parameter is 2 (/Ob2)
# /Og (Global Optimizations)
# /Oi (Generate Intrinsic Functions)
# /Ot (Favor Fast Code)
# /Oy (Frame-Pointer Omission)
# /Gs (Buffer Security Check)
# /GF (Eliminate Duplicate Strings)
# /Gy (Enable Function-Level Linking)
##Note: LOCAL_CFLAGS are flags used for *all* compilations
## STANDARD_CFLAGS (see below) are flags used just for *Wireshark* compilations
@ -1015,7 +1018,7 @@ APPVER=5.02
"$(MSVC_VARIANT)" == "MSVC2012EE" || \
"$(MSVC_VARIANT)" == "MSVC2013" || \
"$(MSVC_VARIANT)" == "MSVC2013EE"
LOCAL_CFLAGS=/Zi /W3 /MD /Ox /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \
LOCAL_CFLAGS=/Zi /W3 /MD /O2 /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \
/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DPSAPI_VERSION=1
!IF "$(MSVC_VARIANT)" == "MSVC2012" || \