Allow PRODUCT_CFI_INCLUDE_PATHS to work with blueprints also
but disable it for host modules like how it's done for Android.mk
Bug:
179233410
Test:
m -j32
Change-Id: I246cd9163e06997a2b50cd25688370690c8929af
diff --git a/cc/library.go b/cc/library.go
index 8f302fc..6c7102e 100644
--- a/cc/library.go
+++ b/cc/library.go
@@ -1751,7 +1751,7 @@
mayUseCoreVariant = false
}
- if ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) && ctx.Arch().ArchType == android.Arm64 {
+ if ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) {
mayUseCoreVariant = false
}