aboutsummaryrefslogtreecommitdiff
path: root/googlemock/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'googlemock/Android.bp')
-rw-r--r--googlemock/Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/googlemock/Android.bp b/googlemock/Android.bp
index e3f779ca..77cf6501 100644
--- a/googlemock/Android.bp
+++ b/googlemock/Android.bp
@@ -34,6 +34,9 @@ cc_defaults {
"-Wno-missing-field-initializers",
"-Wno-sign-compare",
"-Wno-unused-parameter",
+ // We need to generate exception tables, otherwise any users of this
+ // library that use testing::Throw will trigger undefined behaviour.
+ "-fexceptions",
],
}