Merge changes Ia77090da,I95a57f76 am: e264f22bec
am: 0240f5cea1
Change-Id: I61e3e45e533cb62c548fcd09b2bf5eb3890e0a38
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -65,7 +65,7 @@ func init() {
|
||||
ctx.TopDown("tsan_deps", sanitizerDepsMutator(tsan))
|
||||
ctx.BottomUp("tsan", sanitizerMutator(tsan)).Parallel()
|
||||
|
||||
ctx.TopDown("sanitize_runtime_deps", sanitizerRuntimeDepsMutator)
|
||||
ctx.TopDown("sanitize_runtime_deps", sanitizerRuntimeDepsMutator).Parallel()
|
||||
ctx.BottomUp("sanitize_runtime", sanitizerRuntimeMutator).Parallel()
|
||||
|
||||
ctx.BottomUp("coverage", coverageMutator).Parallel()
|
||||
|
@@ -706,8 +706,8 @@ func sanitizerRuntimeDepsMutator(mctx android.TopDownMutatorContext) {
|
||||
if !isSanitizableDependencyTag(mctx.OtherModuleDependencyTag(child)) {
|
||||
return false
|
||||
}
|
||||
if d, ok := child.(*Module); ok && d.static() && d.sanitize != nil {
|
||||
|
||||
if d, ok := child.(*Module); ok && d.static() && d.sanitize != nil {
|
||||
if enableMinimalRuntime(d.sanitize) {
|
||||
// If a static dependency is built with the minimal runtime,
|
||||
// make sure we include the ubsan minimal runtime.
|
||||
@@ -718,8 +718,17 @@ func sanitizerRuntimeDepsMutator(mctx android.TopDownMutatorContext) {
|
||||
// make sure we include the ubsan runtime.
|
||||
c.sanitize.Properties.UbsanRuntimeDep = true
|
||||
}
|
||||
|
||||
if c.sanitize.Properties.MinimalRuntimeDep &&
|
||||
c.sanitize.Properties.UbsanRuntimeDep {
|
||||
// both flags that this mutator might set are true, so don't bother recursing
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user