Disable cfi and stl for stubs libraries
Stubs libs are not built with dependencies required for cfi and stl. Also it does not make much sense to build stubs with cfi and stl because the libs are not for runtime and there is no C++ symbols. Test: cherry-pick ag/5747464 and m Change-Id: I83d6d82513a77a6a8a345e7d12707940c2c906c7
This commit is contained in:
@@ -1053,6 +1053,8 @@ func VersionMutator(mctx android.BottomUpMutatorContext) {
|
|||||||
l.MutatedProperties.BuildStubs = true
|
l.MutatedProperties.BuildStubs = true
|
||||||
l.MutatedProperties.StubsVersion = versions[i]
|
l.MutatedProperties.StubsVersion = versions[i]
|
||||||
m.(*Module).Properties.HideFromMake = true
|
m.(*Module).Properties.HideFromMake = true
|
||||||
|
m.(*Module).sanitize = nil
|
||||||
|
m.(*Module).stl = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user