From 15608438f724f4ddcb86a8e534b4651f70befad0 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Fri, 15 Feb 2019 14:55:23 -0800 Subject: Disable native_coverage for webrtc Bug: http://b/116873221 Linking fails at O0 because VTable for InStream and OutStream (defined in webrtc/common_types.h) is not found. The fix is to mark the Rewind function in both classes as pure virtual. It's better to disable native_coverage here rather than pick up a downstream change to an external codebase. Test: Build with coverage Change-Id: I13375f8fa02c2e9330d30f091f069518e2908f51 --- Android.bp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Android.bp b/Android.bp index 48ff6074ed..1b89263921 100644 --- a/Android.bp +++ b/Android.bp @@ -116,6 +116,11 @@ cc_library_shared { instruction_set: "arm", }, }, + + // Disable native_coverage since linking fails with -O0 (needed for + // coverage). The fix is to mark InStream::Rewind and OutStream::Rewind as + // pure virtual in webrtc/common_types.h + native_coverage: false, } cc_library_shared { -- cgit v1.2.3