mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Back out "[aarch64][tools/build_defs/third_party/fbcode_defs.bzl] Fix dep handling in cross-builds"
Differential Revision: D45415678nnPull Request resolved: https://github.com/pytorch/pytorch/pull/100294
This commit is contained in:
parent
c3ccdc0125
commit
a1d041728b
|
|
@ -566,21 +566,13 @@ def pt_operator_query_codegen(
|
|||
apple_sdks = None):
|
||||
oplist_dir_name = name + "_pt_oplist"
|
||||
|
||||
# Use a helper rule to properly resolves any `select()`s in deps.
|
||||
fb_native.cxx_library(
|
||||
name = oplist_dir_name + "-deps",
|
||||
compatible_with = compatible_with,
|
||||
deps = deps,
|
||||
visibility = ["PUBLIC"],
|
||||
)
|
||||
|
||||
# @lint-ignore BUCKLINT
|
||||
fb_native.genrule(
|
||||
name = oplist_dir_name,
|
||||
cmd = ("$(exe {}tools:gen_oplist) ".format(ROOT_PATH) +
|
||||
"--model_file_list_path $(@query_outputs 'attrfilter(labels, pt_operator_library, deps(\":{name}-deps\"))') " +
|
||||
"--model_file_list_path $(@query_outputs 'attrfilter(labels, pt_operator_library, deps(set({deps})))') " +
|
||||
("" if enforce_traced_op_list else "--allow_include_all_overloads ") +
|
||||
"--output_dir $OUT ").format(name = oplist_dir_name),
|
||||
"--output_dir $OUT ").format(deps = " ".join(["\"{}\"".format(d) for d in deps])),
|
||||
outs = get_gen_oplist_outs(),
|
||||
default_outs = ["."],
|
||||
compatible_with = compatible_with,
|
||||
|
|
|
|||
|
|
@ -15,11 +15,7 @@ def _read_config(**kwargs):
|
|||
def _filegroup(**kwargs):
|
||||
filegroup(**kwargs)
|
||||
|
||||
def _cxx_library(**kwargs):
|
||||
cxx_library(**kwargs)
|
||||
|
||||
fb_native = struct(
|
||||
cxx_library = _cxx_library,
|
||||
genrule = _genrule,
|
||||
read_config = _read_config,
|
||||
filegroup = _filegroup,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user