From 509800512198bcf8c4214be71574e635dbe95438 Mon Sep 17 00:00:00 2001 From: TARGETS Exterminator Date: Thu, 29 Jan 2026 20:26:58 -0800 Subject: [PATCH] Rename build files from TARGETS to BUCK (group ID: -9117568873588090375) (#17045) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/17045 Reviewed By: bigfootjon Differential Revision: D91839152 --- extension/export_util/{TARGETS => BUCK} | 3 ++- extension/flat_tensor/BUCK | 11 ++++++++++- extension/flat_tensor/TARGETS | 6 ------ 3 files changed, 12 insertions(+), 8 deletions(-) rename extension/export_util/{TARGETS => BUCK} (72%) delete mode 100644 extension/flat_tensor/TARGETS diff --git a/extension/export_util/TARGETS b/extension/export_util/BUCK similarity index 72% rename from extension/export_util/TARGETS rename to extension/export_util/BUCK index 84670129bba..db93c140907 100644 --- a/extension/export_util/TARGETS +++ b/extension/export_util/BUCK @@ -1,8 +1,9 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") oncall("executorch") -runtime.python_library( +fbcode_target(_kind = runtime.python_library, name = "export_util", srcs = [ "utils.py", diff --git a/extension/flat_tensor/BUCK b/extension/flat_tensor/BUCK index 08e83a5f3c4..7a4f253e8b9 100644 --- a/extension/flat_tensor/BUCK +++ b/extension/flat_tensor/BUCK @@ -1,6 +1,15 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") load(":targets.bzl", "define_common_targets") oncall("executorch") -define_common_targets() +non_fbcode_target(_kind = define_common_targets,) + +# !!!! fbcode/executorch/extension/flat_tensor/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") +load(":targets.bzl", "define_common_targets") + + +fbcode_target(_kind = define_common_targets,) diff --git a/extension/flat_tensor/TARGETS b/extension/flat_tensor/TARGETS deleted file mode 100644 index 08e83a5f3c4..00000000000 --- a/extension/flat_tensor/TARGETS +++ /dev/null @@ -1,6 +0,0 @@ -load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -load(":targets.bzl", "define_common_targets") - -oncall("executorch") - -define_common_targets()