Skip to content

Commit 7f57a19

Browse files
committed
Update
[ghstack-poisoned]
1 parent 9a93839 commit 7f57a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ def define_common_targets():
8787
# linker failure.
8888
"ovr_config//cpu:arm64": get_sleef_preprocessor_flags(),
8989
"DEFAULT": [],
90-
}) + ["-DET_USE_PYTORCH_HEADERS", "-DSTANDALONE_TORCH_HEADER"],
90+
}) + ["-DSTANDALONE_TORCH_HEADER"] + ([] if runtime.is_oss else ["-DET_USE_PYTORCH_HEADERS"]),
9191
)

0 commit comments

Comments
 (0)