Skip apex dep check when sanitizer diag is enabled

To avoid adding ubsan to the apex allowed_dep list, this commit adds a
check on depedency tags to see if apex check should be skipped.
The check is only used on sharedLib dependencies when diag mode are enabled
for sanitizers.

Bug: 158010610

Test: make build for aosp-sargo and aosp_cf_x86_phone-userdebug

Change-Id: I3d7dbb70d8c80ffae1854819cf8cf9e6b0b15c00
This commit is contained in:
Cindy Zhou
2020-12-10 07:12:38 -08:00
parent 8bfb63c5a9
commit 18417cbd72
4 changed files with 33 additions and 2 deletions

View File

@@ -609,6 +609,9 @@ type libraryDependencyTag struct {
makeSuffix string
// Whether or not this dependency should skip the apex dependency check
skipApexAllowedDependenciesCheck bool
// Whether or not this dependency has to be followed for the apex variants
excludeInApex bool
}