commit | 6fec12abc758147b14a5c745f1bb9dadeec01472 | [log] [tgz] |
---|---|---|
author | Inseob Kim <inseob@google.com> | Tue Jun 16 23:37:57 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jun 16 23:37:57 2020 +0000 |
tree | a61b54f5e8b31f0920c1cef6d1ed2801c381c7ba | |
parent | 001ad5a6fc371e116971d2d28676dc7738ac89ce [diff] | |
parent | 65ca36a72e7c1b5f353208faa94e665b2625e51a [diff] |
Merge "Exclude kernel_headers from vendor snapshot"
diff --git a/cc/vendor_snapshot.go b/cc/vendor_snapshot.go index ea94544..4dad730 100644 --- a/cc/vendor_snapshot.go +++ b/cc/vendor_snapshot.go
@@ -548,6 +548,10 @@ if !m.IsForPlatform() || m.isSnapshotPrebuilt() || !m.inVendor() { return false } + // skip kernel_headers which always depend on vendor + if _, ok := m.linker.(*kernelHeadersDecorator); ok { + return false + } // Libraries if l, ok := m.linker.(snapshotLibraryInterface); ok {