Skip to content

Commit b32bfb6

Browse files
Michael Chienfacebook-github-bot
authored andcommitted
Remove is_arvr_mode() from xplat/executorch/runtime/core/portable_type/c10/c10/targets.bzl (#11830)
Summary: Remove is_arvr_mode() from fbcode/executorch/runtime/core/portable_type/c10/c10/targets.bzl. This is an effort to unify the xplat and rl target graphs in the citadel orchestrator See post for context https://fb.workplace.com/groups/3454295018049629/permalink/3734068433405618/ Reviewed By: autozimu, swolchok Differential Revision: D76755925
1 parent 44ab83a commit b32bfb6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runtime/core/portable_type/c10/c10/targets.bzl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ def define_common_targets():
7878
xplat_exported_deps = [
7979
"//xplat/caffe2:aten_header",
8080
"//xplat/caffe2/c10:c10_headers",
81-
("//xplat/caffe2:ovrsource_aten_Config.h"
82-
if is_arvr_mode() else "//xplat/caffe2:generated_aten_config_header"),
83-
] + get_sleef_deps(),
81+
] + select({
82+
"DEFAULT": ["//xplat/caffe2:generated_aten_config_header"],
83+
"ovr_config//build_mode:arvr_mode": ["//xplat/caffe2:ovrsource_aten_Config.h"],
84+
}) + get_sleef_deps(),
8485
fbcode_exported_deps = ([
8586
"//caffe2:aten-headers-cpu",
8687
"//caffe2:generated-config-header",

0 commit comments

Comments
 (0)