def additional_per_module_swiftcopts(label, provider):
    """Returns additional swiftcopts to apply to a target named `label`.

    Args:
      label: The label of the target.
      provider: The `PerModuleSwiftCoptsSettingInfo` provider from the calling
          context.
    Returns:
        A list of additional swiftcopts to use when builing the target.
    """
    per_module_copts = provider.value
    if per_module_copts:
        target_label = str(label)
        return per_module_copts.get(target_label, [])
    return []