Avoid race condition over ExportedSystemIncludeDirs
It is not clear whether this is causing the bug but it is a potential source of problems and if it does not fix the bug then at least it will have eliminated this as the culprit. Bug: 157656545 Test: m nothing Change-Id: I3abcb9ae501977924d0d514f4d9007ead24fe0a5
This commit is contained in:
parent
63a89ef82f
commit
ab5467dbd0
1 changed files with 5 additions and 1 deletions
|
@ -380,7 +380,11 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte
|
|||
// Make sure that the include directories are unique.
|
||||
p.ExportedIncludeDirs = android.FirstUniquePaths(exportedIncludeDirs)
|
||||
p.exportedGeneratedIncludeDirs = android.FirstUniquePaths(exportedGeneratedIncludeDirs)
|
||||
p.ExportedSystemIncludeDirs = android.FirstUniquePaths(ccModule.ExportedSystemIncludeDirs())
|
||||
|
||||
// Take a copy before filtering out duplicates to avoid changing the slice owned by the
|
||||
// ccModule.
|
||||
dirs := append(android.Paths(nil), ccModule.ExportedSystemIncludeDirs()...)
|
||||
p.ExportedSystemIncludeDirs = android.FirstUniquePaths(dirs)
|
||||
|
||||
p.ExportedFlags = ccModule.ExportedFlags()
|
||||
if ccModule.linker != nil {
|
||||
|
|
Loading…
Reference in a new issue