Skip to content

Commit

Permalink
Merge pull request #793 from mstorsjo/fix-msvc-gtest
Browse files Browse the repository at this point in the history
Fix building gtest on MSVC 2010 and newer
  • Loading branch information
zhilwang committed May 6, 2014
2 parents 69fe242 + 853e71e commit 7746e3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/platform-msvc-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ CC=cl
CXX=cl
AR=lib
CXX_O=-Fo$@
CFLAGS += -nologo -W3 -EHsc -fp:precise -Zc:wchar_t -Zc:forScope -DGTEST_HAS_TR1_TUPLE=1 -DGTEST_USE_OWN_TR1_TUPLE=1
# -DGTEST_HAS_TR1_TUPLE=0 is temporarily broken in gtest,
# using _VARIADIC_MAX=10 to fix building on MSVC 2012 meanwhile.
# Once gtest works with the former again, it should be preferred.
CFLAGS += -nologo -W3 -EHsc -fp:precise -Zc:wchar_t -Zc:forScope -D_VARIADIC_MAX=10
CXX_LINK_O=-nologo -Fe$@
AR_OPTS=-nologo -out:$@
CFLAGS_OPT=-O2 -Ob1 -Oy- -Zi -GF -Gm- -GS -Gy -DNDEBUG
Expand Down

0 comments on commit 7746e3f

Please sign in to comment.