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())