summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Hutchinson <nshutchinson@gmail.com>2014-01-09 02:35:36 (GMT)
committerNicholas Hutchinson <nshutchinson@gmail.com>2014-01-09 02:36:57 (GMT)
commitc0b1e4d75e2839add8c856ce6ceabb3e91a8666a (patch)
treee695163ca7a7f35d54ad1146cb288c856c3bb859
parent3e4bf25c40450393b5c5006c11d6e4236294c804 (diff)
downloadNinja-c0b1e4d75e2839add8c856ce6ceabb3e91a8666a.zip
Ninja-c0b1e4d75e2839add8c856ce6ceabb3e91a8666a.tar.gz
Ninja-c0b1e4d75e2839add8c856ce6ceabb3e91a8666a.tar.bz2
configure.py: use /FS flag under vs2013 when compiling gtest
-rwxr-xr-xconfigure.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index cceb0f7..da2f6ef 100755
--- a/configure.py
+++ b/configure.py
@@ -328,7 +328,10 @@ if options.with_gtest:
gtest_all_incs = '-I%s -I%s' % (path, os.path.join(path, 'include'))
if platform.is_msvc():
- gtest_cflags = '/nologo /EHsc /Zi /D_VARIADIC_MAX=10 ' + gtest_all_incs
+ gtest_cflags = '/nologo /EHsc /Zi /D_VARIADIC_MAX=10 '
+ if platform.msvc_needs_fs():
+ gtest_cflags += '/FS '
+ gtest_cflags += gtest_all_incs
else:
gtest_cflags = '-fvisibility=hidden ' + gtest_all_incs
objs += n.build(built('gtest-all' + objext), 'cxx',