From 07c3daae263777e6e15f212c4753c4e33a0bbaa1 Mon Sep 17 00:00:00 2001 From: Val Tarasyuk Date: Thu, 29 May 2025 13:40:19 -0700 Subject: [PATCH] Expose gen_oplist_lib to clients Summary: I'm working on a linter that checks a model's ops against those available in our runtime environment (see D75110565), and I'd like to call `gen_oplist` programmatically. I can't do that because `gen_oplist_lib` is not visible outside the `executorch` subdir. If there are no objections, I'd like to expose it to clients. Differential Revision: D75630096 --- codegen/tools/targets.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/tools/targets.bzl b/codegen/tools/targets.bzl index bf298a76d44..eae783b5ac2 100644 --- a/codegen/tools/targets.bzl +++ b/codegen/tools/targets.bzl @@ -14,6 +14,7 @@ def define_common_targets(is_fbcode = False): base_module = "executorch.codegen.tools", visibility = [ "//executorch/...", + "@EXECUTORCH_CLIENTS", ], deps = [ "//executorch/codegen:gen_lib",