def _ensure_static_manual(args):
    """Set linkopts and tags keys of args for static linking and manual testing.

  Args:
    args: A map representing the arguments to either cc_binary or cc_test.

  Returns:
    The given args modified for linking and tagging.
  """

    # Fully static so the test can move and still operate
    args["linkstatic"] = 1
    args["copts"] = ["-g0"] + args.get("copts", [])
    return args