def _clang_copts(objc_fragment):
    """Returns copts that should be passed to `clang` from the `objc` fragment.

    Args:
        objc_fragment: The `objc` configuration fragment.

    Returns:
        A list of `clang` copts.
    """

    # In general, every compilation mode flag from native `objc_*` rules should be passed, but `-g`
    # seems to break Clang module compilation. Since this flag does not make much sense for module
    # compilation and only touches headers, it's ok to omit.
    clang_copts = objc_fragment.copts + objc_fragment.copts_for_current_compilation_mode
    return [copt for copt in clang_copts if copt != "-g"]