rm platform args xplat/langtech/mobile/BUCK (#161018)

Differential Revision: D80460691

Pull Request resolved: https://github.com/pytorch/pytorch/pull/161018
Approved by: https://github.com/drisspg
This commit is contained in:
Rex Zhang
2025-08-22 14:47:36 +00:00
committed by PyTorch MergeBot
parent db44de4c0d
commit ce467df5d1

View File

@ -824,9 +824,13 @@ def get_pt_operator_registry_dict(
apple_sdks = kwargs.get("apple_sdks"),
)
# Extract existing linker_flags from kwargs and combine with default flags
existing_linker_flags = kwargs.pop("linker_flags", [])
combined_linker_flags = get_no_as_needed_linker_flag() + existing_linker_flags
return dict(
srcs = code_gen_files["srcs"],
linker_flags = get_no_as_needed_linker_flag(),
linker_flags = combined_linker_flags,
# @lint-ignore BUCKLINT link_whole
link_whole = True,
soname = "libtorch-code-gen.$(ext)",