From 561468f0defc5ea76bffc487c977bae4861abb11 Mon Sep 17 00:00:00 2001 From: TARGETS Exterminator Date: Thu, 29 Jan 2026 20:30:17 -0800 Subject: [PATCH] Rename build files from TARGETS to BUCK (group ID: -4570237357662495118) (#17050) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/17050 Reviewed By: bigfootjon Differential Revision: D91838746 --- backends/arm/debug/{TARGETS => BUCK} | 3 ++- backends/arm/operator_support/{TARGETS => BUCK} | 3 ++- backends/arm/operators/{TARGETS => BUCK} | 9 +++++---- backends/arm/quantizer/{TARGETS => BUCK} | 11 ++++++----- 4 files changed, 15 insertions(+), 11 deletions(-) rename backends/arm/debug/{TARGETS => BUCK} (65%) rename backends/arm/operator_support/{TARGETS => BUCK} (76%) rename backends/arm/operators/{TARGETS => BUCK} (75%) rename backends/arm/quantizer/{TARGETS => BUCK} (76%) diff --git a/backends/arm/debug/TARGETS b/backends/arm/debug/BUCK similarity index 65% rename from backends/arm/debug/TARGETS rename to backends/arm/debug/BUCK index a88e3b077cd..bfc28e9df77 100644 --- a/backends/arm/debug/TARGETS +++ b/backends/arm/debug/BUCK @@ -1,7 +1,8 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") # @noautodeps load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "schema", srcs = [ "__init__.py", diff --git a/backends/arm/operator_support/TARGETS b/backends/arm/operator_support/BUCK similarity index 76% rename from backends/arm/operator_support/TARGETS rename to backends/arm/operator_support/BUCK index 8f6721bd911..b007868866d 100644 --- a/backends/arm/operator_support/TARGETS +++ b/backends/arm/operator_support/BUCK @@ -1,6 +1,7 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "operator_support", srcs = glob(["*.py"]), deps = [ diff --git a/backends/arm/operators/TARGETS b/backends/arm/operators/BUCK similarity index 75% rename from backends/arm/operators/TARGETS rename to backends/arm/operators/BUCK index 38eb9e7cad9..867e062596f 100644 --- a/backends/arm/operators/TARGETS +++ b/backends/arm/operators/BUCK @@ -1,7 +1,8 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") # @noautodeps load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "node_visitor", srcs = ["node_visitor.py"], deps = [ @@ -11,12 +12,12 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "operator_validation_utils", srcs = ["operator_validation_utils.py"], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "ops", srcs = glob(["op_*.py", "ops_*.py"]), deps = [ @@ -30,7 +31,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "lib", srcs = ["__init__.py"], deps = [ diff --git a/backends/arm/quantizer/TARGETS b/backends/arm/quantizer/BUCK similarity index 76% rename from backends/arm/quantizer/TARGETS rename to backends/arm/quantizer/BUCK index 1a02340f92b..e49040c3b7b 100644 --- a/backends/arm/quantizer/TARGETS +++ b/backends/arm/quantizer/BUCK @@ -1,7 +1,8 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") # Exposed through __init__.py -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "quantization_config", srcs = ["quantization_config.py"], deps = [ @@ -11,7 +12,7 @@ runtime.python_library( ) # Exposed through __init__.py -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "arm_quantizer", srcs = ["arm_quantizer.py"], deps = [ @@ -23,7 +24,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "quantization_annotator", srcs = ["quantization_annotator.py"], deps = [ @@ -34,7 +35,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "arm_quantizer_utils", srcs = ["arm_quantizer_utils.py"], deps = [ @@ -43,7 +44,7 @@ runtime.python_library( ], ) -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "lib", srcs = ["__init__.py"], deps = [