Skip to content

Commit 7e228ee

Browse files
authored
Add backend option setter to the dynamic shim
Differential Revision: D79314050 Pull Request resolved: #13891
1 parent 56defdf commit 7e228ee

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

backends/xnnpack/runtime/XNNPACKBackend.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#pragma once
22

3-
#include <executorch/runtime/platform/compiler.h>
4-
53
namespace executorch::backends::xnnpack {
64
/// The key for the backend. This is used to register the backend, check
75
/// availability, and get/set options.

backends/xnnpack/targets.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,13 @@ def define_common_targets():
7373
# @lint-ignore BUCKLINT: Avoid `link_whole=True` (https://fburl.com/avoid-link-whole)
7474
link_whole = True,
7575
)
76+
77+
runtime.cxx_library(
78+
name = "xnnpack_interface",
79+
visibility = [
80+
"@EXECUTORCH_CLIENTS",
81+
],
82+
exported_headers = [
83+
"runtime/XNNPACKBackend.h",
84+
],
85+
)

0 commit comments

Comments
 (0)