Skip to content

Commit 3235f58

Browse files
authored
Fix API floor in BUCK build
Summary: The target compiled as Android API 21, but it unconditionally calls AHardwareBuffer_*, available only from API 26. NDK r26b now enforces that annotation. The modifier sets the truthful API floor and also propagates to the generated static target. Differential Revision: D121231973 Pull Request resolved: pytorch#23013
1 parent e5acd53 commit 3235f58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • backends/mediatek/runtime

‎backends/mediatek/runtime/BUCK‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ non_fbcode_target(
2222
"include/**/*.h",
2323
]),
2424
include_directories = ["include"],
25+
modifiers = ["ovr_config//os/version/android/constraints:api-level-26"],
2526
deps = [
2627
"fbsource//third-party/mediatek/neuropilot-express-sdk:runtime_api",
2728
"//executorch/runtime/backend:interface",

0 commit comments

Comments
 (0)