From 3a62a9cc2bc113b77eda1e95f470dbcd2ff060ca Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 20 Jan 2021 16:41:31 -0800 Subject: [PATCH] Truncate vendor snapshot header glob list after filtering it Test: m checkbuild Change-Id: I4847bff5c03844194a9a80e8cb24a60694db6208 --- cc/library.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/library.go b/cc/library.go index 73ed96923..29a3c696a 100644 --- a/cc/library.go +++ b/cc/library.go @@ -481,6 +481,7 @@ func (l *libraryDecorator) collectHeadersForSnapshot(ctx android.ModuleContext) } j++ } + glob = glob[:j] } // Collect generated headers