vndk-def: Add libclang_rt to eligible list

This commit makes sure libclang_rt.asan and libclang_rt.ubsan_standalone
for all architectures are tagged correctly.  Prior to this commit, some
human tweaks are necessary for other architectures.

Test: Update the latest eligible list.
Change-Id: I457a66593966b7439b28c70779202ec95c7cb167
This commit is contained in:
Logan Chien
2018-02-23 19:45:26 +08:00
parent 0e5cdef7be
commit e985b82d4b

View File

@@ -183,6 +183,20 @@ def main():
for regex in regex_patterns:
data[regex[0]] = regex
# Workaround for libclang_rt.asan
prefix = 'libclang_rt.asan'
if any(name.startswith(prefix) for name in llndk):
for path in list(data.keys()):
if os.path.basename(path).startswith(prefix):
update_tag(path, 'LL-NDK')
# Workaround for libclang_rt.ubsan_standalone
prefix = 'libclang_rt.ubsan_standalone'
if any(name.startswith(prefix) for name in vndk):
for path in list(data.keys()):
if os.path.basename(path).startswith(prefix):
update_tag(path, 'VNDK')
# Write updated eligible list file.
with open(args.output, 'w') as fp:
writer = csv.writer(fp, lineterminator='\n')