From 39a74751795351ee98b5bdb40510157eff4e4363 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Fri, 11 May 2012 13:29:32 +0000 Subject: [PATCH] Set no rtti option to avoid warnings on Android. git-svn-id: http://skia.googlecode.com/svn/trunk@3905 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gyp/libjpeg.gyp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gyp/libjpeg.gyp b/gyp/libjpeg.gyp index dcf14509a2..77bc276c12 100644 --- a/gyp/libjpeg.gyp +++ b/gyp/libjpeg.gyp @@ -81,6 +81,11 @@ }, 'conditions': [ ['OS!="win"', {'product_name': 'jpeg'}], + ['OS=="android"', { + 'cflags!': [ + '-fno-rtti', # supresses warnings about invalid option of non-C++ code + ], + }], ], }, ],