From 18a21d8f68731363262d007cbe88183183986d52 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 2 Jun 2022 22:36:37 +0000 Subject: Build gmock with exception tables. Bug: 233683072 Change-Id: Ic208fc03670a8c9b4ceb7dc805d45cd25e69be8c --- googlemock/Android.bp | 3 +++ 1 file changed, 3 insertions(+) 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", ], } -- cgit v1.2.3