Skip to content

Commit 3d4904b

Browse files
authored
Resync Android BUCK part 2
1 parent b8a2cbd commit 3d4904b

File tree

2 files changed

+5
-0
lines changed
  • examples/demo-apps/android/LlamaDemo/app/src/main
  • extension/android/jni

2 files changed

+5
-0
lines changed

examples/demo-apps/android/LlamaDemo/app/src/main/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fb_android_library(
2727
"java/com/example/executorchllamademo/ModelRunner.java",
2828
"java/com/example/executorchllamademo/ModelRunnerCallback.java",
2929
"java/com/example/executorchllamademo/ModelType.java",
30+
"java/com/example/executorchllamademo/ModelUtils.java",
3031
"java/com/example/executorchllamademo/PromptFormat.java",
3132
"java/com/example/executorchllamademo/SettingsActivity.java",
3233
"java/com/example/executorchllamademo/SettingsFields.java",

extension/android/jni/BUCK

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fb_android_cxx_library(
3030
compiler_flags = [
3131
"-frtti",
3232
"-fexceptions",
33+
"-Wno-unused-variable",
3334
],
3435
soname = "libexecutorch.$(ext)",
3536
visibility = ["PUBLIC"],
@@ -38,6 +39,7 @@ fb_android_cxx_library(
3839
"//fbandroid/native/fb:fb",
3940
"//third-party/glog:glog",
4041
"//xplat/executorch/extension/module:module_static",
42+
"//xplat/executorch/extension/runner_util:inputs_static",
4143
"//xplat/executorch/extension/runner_util:managed_tensor_static",
4244
],
4345
)
@@ -50,6 +52,7 @@ fb_android_cxx_library(
5052
compiler_flags = [
5153
"-frtti",
5254
"-fexceptions",
55+
"-Wno-unused-variable",
5356
],
5457
soname = "libexecutorch.$(ext)",
5558
visibility = ["PUBLIC"],
@@ -60,6 +63,7 @@ fb_android_cxx_library(
6063
"//third-party/glog:glog",
6164
"//xplat/executorch/backends/xnnpack:xnnpack_backend_static",
6265
"//xplat/executorch/extension/module:module_static",
66+
"//xplat/executorch/extension/runner_util:inputs_static",
6367
"//xplat/executorch/extension/runner_util:managed_tensor_static",
6468
],
6569
)

0 commit comments

Comments
 (0)