Skip to content

Commit de446f2

Browse files
lg-zhangfacebook-github-bot
authored andcommitted
use ovrsource libtorch in executorch
Summary: We need ovrsource libtorch in arvr mode. Differential Revision: D66526578
1 parent 5785fc3 commit de446f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extension/pytree/aten_util/targets.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
2+
load("@fbsource//tools/build_defs:fbsource_utils.bzl", "is_arvr_mode")
23

34
def define_common_targets():
45
"""Defines targets that should be shared between fbcode and xplat.
@@ -26,7 +27,9 @@ def define_common_targets():
2627
"//caffe2/c10:c10",
2728
],
2829
xplat_deps = [
30+
"fbsource//xplat/caffe2:libtorch_mobile_ovrsource",
31+
] if is_arvr_mode() else [
2932
"//xplat/caffe2:torch_mobile_core",
3033
"//xplat/caffe2/c10:c10",
31-
],
34+
]
3235
)

0 commit comments

Comments
 (0)