Do not fail the build when gcov is not installed

Fixes #5066.

RELNOTES: None.
PiperOrigin-RevId: 210521623
diff --git a/tools/cpp/unix_cc_configure.bzl b/tools/cpp/unix_cc_configure.bzl
index de632cd..361931b 100644
--- a/tools/cpp/unix_cc_configure.bzl
+++ b/tools/cpp/unix_cc_configure.bzl
@@ -438,7 +438,7 @@
     }
   """
 
-def _find_generic(repository_ctx, name, env_name, overriden_tools, warn = False):
+def _find_generic(repository_ctx, name, env_name, overriden_tools, warn = False, silent = False):
     """Find a generic C++ toolchain tool. Doesn't %-escape the result."""
 
     if name in overriden_tools:
@@ -460,7 +460,8 @@
         msg = ("Cannot find %s or %s%s; either correct your path or set the %s" +
                " environment variable") % (name, env_name, env_value_with_paren, env_name)
         if warn:
-            auto_configure_warning(msg)
+            if not silent:
+                auto_configure_warning(msg)
         else:
             auto_configure_fail(msg)
     return result
@@ -488,6 +489,8 @@
         "gcov",
         "GCOV",
         overriden_tools,
+        warn = True,
+        silent = True,
     )
     if darwin:
         overriden_tools["gcc"] = "cc_wrapper.sh"