From 318cb0370878c34ba5072ceaa4dad58363c5f088 Mon Sep 17 00:00:00 2001 From: Jake Stevens Date: Fri, 12 Jun 2026 06:04:06 -0700 Subject: [PATCH] Add test op alias to backend target (#20223) Summary: The backend code now uses op alias, which lives in test code and was not a BUCK dependency. Add the proper deps Reviewed By: rascani Differential Revision: D108305486 --- backends/nxp/BUCK | 3 +++ backends/nxp/tests/BUCK | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/backends/nxp/BUCK b/backends/nxp/BUCK index de2055e8c91..6dec42f04d7 100644 --- a/backends/nxp/BUCK +++ b/backends/nxp/BUCK @@ -66,6 +66,9 @@ fbcode_target(_kind = runtime.python_library, srcs = glob(["backend/**/*.py"]), deps = [ "fbsource//third-party/pypi/neutron_converter:neutron_converter", + "//caffe2:torch", + "//executorch/exir:lib", + "//executorch/backends/nxp/tests:ops_aliases", ], ) diff --git a/backends/nxp/tests/BUCK b/backends/nxp/tests/BUCK index 2e793e81d96..4ff4b8fe8ac 100644 --- a/backends/nxp/tests/BUCK +++ b/backends/nxp/tests/BUCK @@ -4,6 +4,17 @@ load("@fbcode_macros//build_defs:python_pytest.bzl", "python_pytest") oncall("executorch") +fbcode_target(_kind = runtime.python_library, + name = "ops_aliases", + srcs = [ + "ops_aliases.py", + ], + deps = [ + "//caffe2:torch", + "//executorch/exir:lib", + ], +) + fbcode_target(_kind = runtime.python_library, name = "models", srcs = [