gn2bp: Skip extracting common part for source_set

Test: ./update_results.sh
Change-Id: I429cef85ffbb47df0e44970732f223d81e2867c8
This commit is contained in:
Motomu Utsumi
2022-11-18 17:44:28 +09:00
parent 6550118309
commit 5539463ed1
2 changed files with 2229 additions and 379 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -190,6 +190,12 @@ class GnParser(object):
return
self.is_finalized = True
# There are targets that depend on source_set only in specific arch.
# Currently, source_set is converted to cc_defaults and defaults can not be target specific
# So, skip extracting common part and keep all data for each arch
if self.type == 'source_set':
return
# Target contains the intersection of arch-dependent properties
self.sources = set.intersection(*[arch.sources for arch in self.arch.values()])
self.cflags = set.intersection(*[arch.cflags for arch in self.arch.values()])