diff options
author | 2025-02-18 22:35:45 +0000 | |
---|---|---|
committer | 2025-02-20 14:31:41 -0800 | |
commit | b6f8f4fd3602b62c068c37fb4f92c3922efe1853 (patch) | |
tree | 19d6822503165e7be9b59fe6db596ef7dc8c6282 /android/config.go | |
parent | eff8cc80c6b6df1c9973b552c84987976a98af7a (diff) |
Integrate RELEASE_R8_GLOBAL_CHECK_NOT_NULL_FLAGS into soong
Include the new set of `checknotnull.flags` based on the build flag,
allowing `-convertchecknotnull` R8 optimizations for a class of common
null checks.
Bug: 280633711
Test: build-flag set RELEASE_R8_GLOBAL_CHECK_NOT_NULL_FLAGS && m
Flag: RELEASE_R8_GLOBAL_CHECK_NOT_NULL_FLAGS
Change-Id: Idf015a3ea5bd9f6e11213f683da008b5706668e0
Diffstat (limited to 'android/config.go')
-rw-r--r-- | android/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index acaad60ad..82acfc3ec 100644 --- a/android/config.go +++ b/android/config.go @@ -2191,6 +2191,10 @@ func (c *config) UseR8StoreStoreFenceConstructorInlining() bool { return c.productVariables.GetBuildFlagBool("RELEASE_R8_STORE_STORE_FENCE_CONSTRUCTOR_INLINING") } +func (c *config) UseR8GlobalCheckNotNullFlags() bool { + return c.productVariables.GetBuildFlagBool("RELEASE_R8_GLOBAL_CHECK_NOT_NULL_FLAGS") +} + func (c *config) UseDexV41() bool { return c.productVariables.GetBuildFlagBool("RELEASE_USE_DEX_V41") } |