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:
Jiyong Park
2018-12-11 02:47:16 +09:00
parent 28d395a149
commit 090d9df206

View File

@@ -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 {