diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 13:20:51 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 13:20:51 +0000 |
commit | 011db97cec76d8f046ce21be195758e09fff0b13 (patch) | |
tree | 40ea42a1b52b45f11c2b040b392f641d5bf30f0a /third_party | |
parent | 066568bfa8718eefda001a5c482dc6789fca8fbe (diff) | |
download | chromium_src-011db97cec76d8f046ce21be195758e09fff0b13.zip chromium_src-011db97cec76d8f046ce21be195758e09fff0b13.tar.gz chromium_src-011db97cec76d8f046ce21be195758e09fff0b13.tar.bz2 |
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
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/protobuf2/protobuf.gyp | 12 |
1 files changed, 12 insertions, 0 deletions
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', |