From 6866011356c91b2345bbcea7e2e085bf3ca15833 Mon Sep 17 00:00:00 2001 From: Jathu Satkunarajah Date: Mon, 8 Sep 2025 13:43:01 -0700 Subject: [PATCH] Fix missing kernel header in stack util (#14069) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/14069 Given `stack_util.h` is exported and it includes `kernel_includes.h`, we need `kernel_includes` in the build dependency. One solution is to expect the clients who use `slice_util` to also add `kernel_includes`. However, "doing it for them" via exported_deps seems like a nicer solution. Reviewed By: silverguo Differential Revision: D81930473 --- kernels/portable/cpu/util/targets.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernels/portable/cpu/util/targets.bzl b/kernels/portable/cpu/util/targets.bzl index d0fd9f4c72b..84d0712c033 100644 --- a/kernels/portable/cpu/util/targets.bzl +++ b/kernels/portable/cpu/util/targets.bzl @@ -302,6 +302,8 @@ def define_common_targets(): exported_headers = ["stack_util.h"], deps = [ "//executorch/kernels/portable/cpu/util:copy_ops_util", + ], + exported_deps = [ "//executorch/runtime/kernel:kernel_includes", ], visibility = ["//executorch/kernels/portable/cpu/...", "@EXECUTORCH_CLIENTS"],