diff options
| -rw-r--r-- | cc/library.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/library.go b/cc/library.go index c9114fdd7..7cafcc16b 100644 --- a/cc/library.go +++ b/cc/library.go @@ -1387,6 +1387,11 @@ func (library *libraryDecorator) sourceAbiDiff(ctx android.ModuleContext, extraFlags = append(extraFlags, "-allow-unreferenced-changes", "-allow-unreferenced-elf-symbol-changes") + // The functions in standard libraries are not always declared in the headers. + // Allow them to be added or removed without changing the symbols. + if isBionic(ctx.ModuleName()) { + extraFlags = append(extraFlags, "-allow-adding-removing-referenced-apis") + } } if isLlndk { extraFlags = append(extraFlags, "-consider-opaque-types-different") |