Skip to content

Commit d660bde

Browse files
authored
fix platform inconsistencies
Differential Revision: D76402988 Pull Request resolved: #11547
1 parent 045b3a5 commit d660bde

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

backends/vulkan/test/op_tests/targets.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def define_test_targets(test_name, extra_deps = [], src_file = None, is_fbcode =
2020
compiler_flags = [
2121
"-Wno-unused-variable",
2222
],
23+
platforms = [ANDROID],
2324
define_static_target = False,
2425
deps = deps_list,
2526
)
@@ -134,6 +135,7 @@ def define_common_targets(is_fbcode = False):
134135
"//executorch/backends/vulkan:vulkan_graph_runtime",
135136
runtime.external_dep_location("libtorch"),
136137
],
138+
platforms = [ANDROID],
137139
)
138140

139141
define_test_targets(

examples/qualcomm/executor_runner/targets.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
load(
22
"@fbsource//tools/build_defs:default_platform_defs.bzl",
33
"ANDROID",
4-
"APPLE",
5-
"CXX",
6-
"is_apple_platform",
74
)
85
load("@fbsource//tools/build_defs:fbsource_utils.bzl", "is_fbcode")
96
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
@@ -32,6 +29,7 @@ def define_common_targets():
3229
"//executorch/extension/runner_util:inputs",
3330
"//executorch/backends/qualcomm/runtime:runtime",
3431
],
32+
platforms = [ANDROID],
3533
external_deps = [
3634
"gflags",
3735
],

examples/qualcomm/oss_scripts/llama/targets.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
load(
2+
"@fbsource//tools/build_defs:default_platform_defs.bzl",
3+
"ANDROID",
4+
)
15
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime")
26
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_version")
37

@@ -33,6 +37,7 @@ def define_common_targets():
3337
external_deps = [
3438
"gflags",
3539
],
40+
platforms = [ANDROID],
3641
**get_oss_build_kwargs()
3742
)
3843

@@ -51,5 +56,6 @@ def define_common_targets():
5156
external_deps = [
5257
"gflags",
5358
],
59+
platforms = [ANDROID],
5460
**get_oss_build_kwargs()
5561
)

0 commit comments

Comments
 (0)