mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
db44de4c0d
commit
ce467df5d1
@ -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)",
|
||||
|
Reference in New Issue
Block a user