From 2f4232d5b7e0c99b809b67d9ee30aaff3a7d84a5 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Wed, 9 Mar 2016 09:11:48 -0800 Subject: Support clang-cl build on Windows. R=thakis@chromium.org, tsepez@chromium.org BUG= Review URL: https://codereview.chromium.org/1774123005 . --- testing/gtest.gyp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testing') diff --git a/testing/gtest.gyp b/testing/gtest.gyp index 3c01552c4c..563f340e99 100644 --- a/testing/gtest.gyp +++ b/testing/gtest.gyp @@ -142,6 +142,16 @@ ], 'msvs_disabled_warnings': [4800], }, + 'variables': { + 'clang_warning_flags': [ + # The Mutex constructor initializer list in gtest-port.cc is + # incorrectly ordered. See + # https://groups.google.com/d/msg/googletestframework/S5uSV8L2TX8/U1FaTDa6J6sJ. + '-Wno-reorder', + # Suppress warnings for unused constants. + '-Wno-unused' + ], + }, }, { 'target_name': 'gtest_main', -- cgit v1.2.3