summaryrefslogtreecommitdiff
path: root/testing/gtest.gyp
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2016-03-09 09:11:48 -0800
committerOliver Chang <ochang@chromium.org>2016-03-09 09:11:48 -0800
commit2f4232d5b7e0c99b809b67d9ee30aaff3a7d84a5 (patch)
tree95ec8b1a0f113ce4acd90672093de61748c98a09 /testing/gtest.gyp
parentf089d470558fe70075478d497799aa8a617b9479 (diff)
downloadpdfium-2f4232d5b7e0c99b809b67d9ee30aaff3a7d84a5.tar.xz
Support clang-cl build on Windows.
R=thakis@chromium.org, tsepez@chromium.org BUG= Review URL: https://codereview.chromium.org/1774123005 .
Diffstat (limited to 'testing/gtest.gyp')
-rw-r--r--testing/gtest.gyp10
1 files changed, 10 insertions, 0 deletions
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',