def METHOD_NAME(repo_ctx, cc, options):
    filtered_options = []
    for option in options:
        filtered_options += add_compiler_option_if_supported(repo_ctx, cc, option)
    return filtered_options