Disable ABI tracking for bionic. am: fbe5780312
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3214785 Change-Id: I84041e5e2832ddb17afba253d5e0a607872d2da2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func (n *ndkAbiDumpSingleton) GenerateBuildActions(ctx android.SingletonContext)
|
||||
|
||||
if m, ok := module.(*Module); ok {
|
||||
if installer, ok := m.installer.(*stubDecorator); ok {
|
||||
if canDumpAbi(ctx.Config()) {
|
||||
if canDumpAbi(ctx.Config(), ctx.ModuleDir(module)) {
|
||||
depPaths = append(depPaths, installer.abiDumpPath)
|
||||
}
|
||||
}
|
||||
|
@@ -321,10 +321,19 @@ func (this *stubDecorator) findPrebuiltAbiDump(ctx ModuleContext,
|
||||
}
|
||||
|
||||
// Feature flag.
|
||||
func canDumpAbi(config android.Config) bool {
|
||||
func canDumpAbi(config android.Config, moduleDir string) bool {
|
||||
if runtime.GOOS == "darwin" {
|
||||
return false
|
||||
}
|
||||
if strings.HasPrefix(moduleDir, "bionic/") {
|
||||
// Bionic has enough uncommon implementation details like ifuncs and asm
|
||||
// code that the ABI tracking here has a ton of false positives. That's
|
||||
// causing pretty extreme friction for development there, so disabling
|
||||
// it until the workflow can be improved.
|
||||
//
|
||||
// http://b/358653811
|
||||
return false
|
||||
}
|
||||
// http://b/156513478
|
||||
return config.ReleaseNdkAbiMonitored()
|
||||
}
|
||||
@@ -460,7 +469,7 @@ func (c *stubDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) O
|
||||
nativeAbiResult := parseNativeAbiDefinition(ctx, symbolFile, c.apiLevel, "")
|
||||
objs := compileStubLibrary(ctx, flags, nativeAbiResult.stubSrc)
|
||||
c.versionScriptPath = nativeAbiResult.versionScript
|
||||
if canDumpAbi(ctx.Config()) {
|
||||
if canDumpAbi(ctx.Config(), ctx.ModuleDir()) {
|
||||
c.dumpAbi(ctx, nativeAbiResult.symbolList)
|
||||
if canDiffAbi(ctx.Config()) {
|
||||
c.diffAbi(ctx)
|
||||
|
Reference in New Issue
Block a user