Merge "Change PRODUCT_CFI_INCLUDE_PATHS to opt-out (Soong)"
am: 3ab49a2927
Change-Id: I1594d0474a6e6fdaf6918b8f7d48d1cbb870165f
This commit is contained in:
@@ -226,9 +226,13 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
|
|||||||
|
|
||||||
// Enable CFI for all components in the include paths
|
// Enable CFI for all components in the include paths
|
||||||
if s.Cfi == nil && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) {
|
if s.Cfi == nil && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) {
|
||||||
s.Cfi = boolPtr(true)
|
// Do not rely on include paths for anything other than ARM64.
|
||||||
if inList("cfi", ctx.Config().SanitizeDeviceDiag()) {
|
// TODO: Relax this constraint for 2019.
|
||||||
s.Diag.Cfi = boolPtr(true)
|
if ctx.Arch().ArchType == android.Arm64 {
|
||||||
|
s.Cfi = boolPtr(true)
|
||||||
|
if inList("cfi", ctx.Config().SanitizeDeviceDiag()) {
|
||||||
|
s.Diag.Cfi = boolPtr(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user