Merge "Allow PRODUCT_CFI_INCLUDE_PATHS to work with blueprints also"
This commit is contained in:
@@ -1754,7 +1754,7 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
|
|||||||
mayUseCoreVariant = false
|
mayUseCoreVariant = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) && ctx.Arch().ArchType == android.Arm64 {
|
if ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) {
|
||||||
mayUseCoreVariant = false
|
mayUseCoreVariant = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -437,8 +437,8 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable CFI for all components in the include paths (for Aarch64 only)
|
// Enable CFI for non-host components in the include paths
|
||||||
if s.Cfi == nil && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) && ctx.Arch().ArchType == android.Arm64 {
|
if s.Cfi == nil && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) && !ctx.Host() {
|
||||||
s.Cfi = proptools.BoolPtr(true)
|
s.Cfi = proptools.BoolPtr(true)
|
||||||
if inList("cfi", ctx.Config().SanitizeDeviceDiag()) {
|
if inList("cfi", ctx.Config().SanitizeDeviceDiag()) {
|
||||||
s.Diag.Cfi = proptools.BoolPtr(true)
|
s.Diag.Cfi = proptools.BoolPtr(true)
|
||||||
|
Reference in New Issue
Block a user