Handle static unwinder in ltoDepsMutator
The implementation before libraryDependencyTag was added failed to treat the libgcc_unwind dependency as a static library when traversing dependencies for LTO because it didn't handle staticUnwinderDepTag. Bug: 162437057 Test: m checkbuild Change-Id: Iccc96c0daa0379f51eb975c51fd5e8c507a0daba
This commit is contained in:
parent
aac3222cdf
commit
4fbb5e0234
|
@ -152,9 +152,7 @@ func ltoDepsMutator(mctx android.TopDownMutatorContext) {
|
||||||
|
|
||||||
// Do not recurse down non-static dependencies
|
// Do not recurse down non-static dependencies
|
||||||
if isLibTag {
|
if isLibTag {
|
||||||
// TODO(ccross): the staticUnwinder check is there to maintain existing behavior
|
if !libTag.static() {
|
||||||
// when adding libraryDependencyTag and should be removed.
|
|
||||||
if !libTag.static() || libTag.staticUnwinder {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue