Skip to content

Commit 9ca0ff1

Browse files
authored
Fix ATen/Config.h missing on Android after arvr_mode constraint migration
Differential Revision: D100832205 Pull Request resolved: pytorch#18907
1 parent c567d58 commit 9ca0ff1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ def define_common_targets():
7878
"fbsource//xplat/caffe2/c10:c10_headers",
7979
] + select({
8080
"DEFAULT": ["fbsource//xplat/caffe2:generated_aten_config_header"],
81-
"ovr_config//build_mode:arvr_mode[enabled]": ["fbsource//xplat/caffe2:ovrsource_aten_Config.h"],
81+
"ovr_config//build_mode:arvr_mode[enabled]": select({
82+
"DEFAULT": ["fbsource//xplat/caffe2:ovrsource_aten_Config.h"],
83+
# ovrsource_aten_Config.h is an oxx_static_library that only
84+
# works on OVR-native platforms. On Android, it produces no
85+
# outputs, so use the xplat variant instead.
86+
"ovr_config//os:android": ["fbsource//xplat/caffe2:generated_aten_config_header"],
87+
}),
8288
}) + get_sleef_deps(),
8389
fbcode_exported_deps = ([
8490
"//caffe2:aten-headers-cpu",

0 commit comments

Comments
 (0)