From b0260d133889be3b25501a8a6a3d62b11d8437c6 Mon Sep 17 00:00:00 2001 From: TARGETS Exterminator Date: Thu, 29 Jan 2026 20:27:55 -0800 Subject: [PATCH 1/2] Rename build files from TARGETS to BUCK (group ID: -4448153625730741820) (#17042) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/17042 Reviewed By: bigfootjon Differential Revision: D91838147 --- backends/mediatek/quantizer/{TARGETS => BUCK} | 3 ++- backends/mediatek/runtime/BUCK | 8 ++++++-- backends/mediatek/runtime/TARGETS | 0 3 files changed, 8 insertions(+), 3 deletions(-) rename backends/mediatek/quantizer/{TARGETS => BUCK} (70%) delete mode 100644 backends/mediatek/runtime/TARGETS diff --git a/backends/mediatek/quantizer/TARGETS b/backends/mediatek/quantizer/BUCK similarity index 70% rename from backends/mediatek/quantizer/TARGETS rename to backends/mediatek/quantizer/BUCK index 09be73cd172..1638bbeecff 100644 --- a/backends/mediatek/quantizer/TARGETS +++ b/backends/mediatek/quantizer/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 = "quantizer", srcs = [ "__init__.py", diff --git a/backends/mediatek/runtime/BUCK b/backends/mediatek/runtime/BUCK index d395eb07786..9377c1f13d6 100644 --- a/backends/mediatek/runtime/BUCK +++ b/backends/mediatek/runtime/BUCK @@ -1,3 +1,5 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +oncall("executorch") # Any targets that should be shared between fbcode and xplat must be defined in # targets.bzl. This file can contain xplat-only targets. @@ -7,9 +9,8 @@ load( ) load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -oncall("executorch") -runtime.cxx_library( +non_fbcode_target(_kind = runtime.cxx_library, name = "neuron_backend", srcs = [ "NeuronBackend.cpp", @@ -31,3 +32,6 @@ runtime.cxx_library( platforms = [ANDROID], visibility = ["PUBLIC"], ) + +# !!!! fbcode/executorch/backends/mediatek/runtime/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! + diff --git a/backends/mediatek/runtime/TARGETS b/backends/mediatek/runtime/TARGETS deleted file mode 100644 index e69de29bb2d..00000000000 From a098cef63ef5fd660958cd2d91e495af4e0a6505 Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Mon, 2 Feb 2026 09:59:30 -0800 Subject: [PATCH 2/2] Fix lints --- backends/mediatek/runtime/BUCK | 3 --- 1 file changed, 3 deletions(-) diff --git a/backends/mediatek/runtime/BUCK b/backends/mediatek/runtime/BUCK index 9377c1f13d6..3163f668716 100644 --- a/backends/mediatek/runtime/BUCK +++ b/backends/mediatek/runtime/BUCK @@ -32,6 +32,3 @@ non_fbcode_target(_kind = runtime.cxx_library, platforms = [ANDROID], visibility = ["PUBLIC"], ) - -# !!!! fbcode/executorch/backends/mediatek/runtime/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! -