def my_cc_library(name, srcs = [], data = [], deps = [], copts = [], linkstatic = None, hdrs = [], textual_hdrs = [], alwayslink = None, compatible_with = None , tags = [], features = [], testonly = None, visibility = None, defines = [], deprecation = None, includes=[], local_defines = [], linkopts=[], restricted_to=None, strip_include_prefix=None):
def get_filtered_deps(deps):
return [dep for dep in deps if not dep.startswith("@llvm-project")]
cc_library(name = name, srcs = srcs, data = data, deps = get_filtered_deps(deps), copts = copts, linkstatic = linkstatic, hdrs = hdrs, textual_hdrs=textual_hdrs, alwayslink=alwayslink, compatible_with=compatible_with, tags=tags, features=features, testonly = testonly, visibility= visibility, defines=defines, deprecation=deprecation, includes=includes, local_defines=local_defines,linkopts=linkopts,restricted_to=restricted_to,strip_include_prefix=strip_include_prefix,)