diff --git a/testing/SConscript.gtest b/testing/SConscript.gtest index 38dd2f36add8..c2810c12501d 100644 --- a/testing/SConscript.gtest +++ b/testing/SConscript.gtest @@ -38,14 +38,15 @@ env.Prepend( ], ) -env.Append( - CCFLAGS = [ - '/TP', +if env['PLATFORM'] == 'win32': + env.Append( + CCFLAGS = [ + '/TP', - '/WX', - '/Wp64', - ], -) + '/WX', + '/Wp64', + ], + ) input_files = [ 'gtest/src/gtest-death-test.cc',