Skip to content

Commit f7679d9

Browse files
Michael Chienfacebook-github-bot
authored andcommitted
Remove is_arvr_mode() from xplat/executorch/runtime/core/portable_type/c10/c10/targets.bzl (pytorch#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 0c12dcd commit f7679d9

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
@@ -68,9 +68,10 @@ def define_common_targets():
6868
xplat_exported_deps = [
6969
"//xplat/caffe2:aten_header",
7070
"//xplat/caffe2/c10:c10_headers",
71-
("//xplat/caffe2:ovrsource_aten_Config.h"
72-
if is_arvr_mode() else "//xplat/caffe2:generated_aten_config_header"),
73-
], # + get_sleef_deps(), # TODO: enable Sleef in xplat?
71+
] + select({
72+
"DEFAULT": ["//xplat/caffe2:generated_aten_config_header"],
73+
"ovr_config//build_mode:arvr_mode": ["//xplat/caffe2:ovrsource_aten_Config.h"],
74+
}), # + get_sleef_deps(), # TODO: enable Sleef in xplat?
7475
fbcode_exported_deps = ([
7576
"//caffe2:aten-headers-cpu",
7677
"//caffe2:generated-config-header",

0 commit comments

Comments
 (0)