commit | 7617fc2fab5f87747d7f990c898032dc5cdaf8ae | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Oct 17 19:46:53 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Oct 17 19:46:53 2019 +0000 |
tree | e415e9e79404a73120dd9f17b018ed07690b9144 | |
parent | d1818c8ed0b05c73c52129a8c5bb9a0bccf69115 [diff] | |
parent | 2c0a180be04d49239ef635f34ac60402ddc27cea [diff] |
Merge "Extend ALLOW_MISSING_DEPENDENCIES coverage"
diff --git a/cc/cc.go b/cc/cc.go index d609b94..c432239 100644 --- a/cc/cc.go +++ b/cc/cc.go
@@ -1933,7 +1933,11 @@ if ptr != nil { if !linkFile.Valid() { - ctx.ModuleErrorf("module %q missing output file", depName) + if !ctx.Config().AllowMissingDependencies() { + ctx.ModuleErrorf("module %q missing output file", depName) + } else { + ctx.AddMissingDependencies([]string{depName}) + } return } *ptr = append(*ptr, linkFile.Path())