packages feed

cabal-buck2-0.6.0.0: buck2/prelude/ide_integrations/xcode/argsfiles.bzl

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is dual-licensed under either the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree or the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree. You may select, at your option, one of the
# above-listed licenses.

# @oss-disable[end= ]: load("@prelude//apple/meta_only:xcode_argsfiles.bzl", "get_meta_specific_xcode_arg_substitutions")

def _get_meta_specific_xcode_arg_substitutions():
    # @oss-disable[end= ]: return get_meta_specific_xcode_arg_substitutions()
    return [] # @oss-enable

XCODE_ARGSFILES_SUB_TARGET = "xcode-argsfiles"

XCODE_ARG_SUBSTITUTIONS = [
    (regex("-filter-error=.+"), "-fcolor-diagnostics"),
    (regex("-filter-ignore=.+"), "-fcolor-diagnostics"),
    (regex("-filter-warning=.+"), "-fcolor-diagnostics"),
] + _get_meta_specific_xcode_arg_substitutions()