Loading cc/builder.go +8 −3 Original line number Diff line number Diff line Loading @@ -709,7 +709,7 @@ func UnzipRefDump(ctx android.ModuleContext, zippedRefDump android.Path, baseNam } func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceDump android.Path, baseName, exportedHeaderFlags string, isLlndk, isVndkExt bool) android.OptionalPath { baseName, exportedHeaderFlags string, isLlndk, isNdk, isVndkExt bool) android.OptionalPath { outputFile := android.PathForModuleOut(ctx, baseName+".abidiff") libName := strings.TrimSuffix(baseName, filepath.Ext(baseName)) Loading @@ -719,9 +719,14 @@ func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD if exportedHeaderFlags == "" { localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-advice-only") } if isLlndk || isNdk { createReferenceDumpFlags = "--llndk" if isLlndk { // TODO(b/130324828): "-consider-opaque-types-different" should apply to // both LLNDK and NDK shared libs. However, a known issue in header-abi-diff // breaks libaaudio. Remove the if-guard after the issue is fixed. localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-consider-opaque-types-different") createReferenceDumpFlags = "--llndk" } } if isVndkExt { localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-allow-extensions") Loading cc/library.go +1 −1 Original line number Diff line number Diff line Loading @@ -804,7 +804,7 @@ func (library *libraryDecorator) linkSAbiDumpFiles(ctx ModuleContext, objs Objec refAbiDumpFile := getRefAbiDumpFile(ctx, vndkVersion, fileName) if refAbiDumpFile != nil { library.sAbiDiff = SourceAbiDiff(ctx, library.sAbiOutputFile.Path(), refAbiDumpFile, fileName, exportedHeaderFlags, ctx.isLlndk(), ctx.isVndkExt()) refAbiDumpFile, fileName, exportedHeaderFlags, ctx.isLlndk(), ctx.isNdk(), ctx.isVndkExt()) } } } Loading Loading
cc/builder.go +8 −3 Original line number Diff line number Diff line Loading @@ -709,7 +709,7 @@ func UnzipRefDump(ctx android.ModuleContext, zippedRefDump android.Path, baseNam } func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceDump android.Path, baseName, exportedHeaderFlags string, isLlndk, isVndkExt bool) android.OptionalPath { baseName, exportedHeaderFlags string, isLlndk, isNdk, isVndkExt bool) android.OptionalPath { outputFile := android.PathForModuleOut(ctx, baseName+".abidiff") libName := strings.TrimSuffix(baseName, filepath.Ext(baseName)) Loading @@ -719,9 +719,14 @@ func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD if exportedHeaderFlags == "" { localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-advice-only") } if isLlndk || isNdk { createReferenceDumpFlags = "--llndk" if isLlndk { // TODO(b/130324828): "-consider-opaque-types-different" should apply to // both LLNDK and NDK shared libs. However, a known issue in header-abi-diff // breaks libaaudio. Remove the if-guard after the issue is fixed. localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-consider-opaque-types-different") createReferenceDumpFlags = "--llndk" } } if isVndkExt { localAbiCheckAllowFlags = append(localAbiCheckAllowFlags, "-allow-extensions") Loading
cc/library.go +1 −1 Original line number Diff line number Diff line Loading @@ -804,7 +804,7 @@ func (library *libraryDecorator) linkSAbiDumpFiles(ctx ModuleContext, objs Objec refAbiDumpFile := getRefAbiDumpFile(ctx, vndkVersion, fileName) if refAbiDumpFile != nil { library.sAbiDiff = SourceAbiDiff(ctx, library.sAbiOutputFile.Path(), refAbiDumpFile, fileName, exportedHeaderFlags, ctx.isLlndk(), ctx.isVndkExt()) refAbiDumpFile, fileName, exportedHeaderFlags, ctx.isLlndk(), ctx.isNdk(), ctx.isVndkExt()) } } } Loading