From 011db97cec76d8f046ce21be195758e09fff0b13 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Thu, 13 Aug 2009 13:20:51 +0000 Subject: Suppress RTTI in protobuf2, now that RTTI is disabled on Mac and Linux (r23304). BUG=19094 TEST=Linux Builder (ChromeOS) compile turns green Review URL: http://codereview.chromium.org/164477 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23307 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/protobuf2/protobuf.gyp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'third_party/protobuf2/protobuf.gyp') diff --git a/third_party/protobuf2/protobuf.gyp b/third_party/protobuf2/protobuf.gyp index f3287ed..6c7064e 100644 --- a/third_party/protobuf2/protobuf.gyp +++ b/third_party/protobuf2/protobuf.gyp @@ -73,6 +73,18 @@ 'src/src/google/protobuf/compiler/parser.cc', ], + 'conditions': [ + ['OS != "win"', { + # src/src/google/protobuf/generated_message_reflection.h can figure + # out whether RTTI is enabled or disabled via compiler-defined macros + # when building with MSVC. For other compilers, this macro must be + # defined to suppress the use of dynamic_cast<>, which requires RTTI. + 'defines': [ + 'GOOGLE_PROTOBUF_NO_RTTI', + ], + }], + ], + 'include_dirs': [ '.', 'src/src', -- cgit v1.1