Skip to content

Commit 29c2cfd

Browse files
committed
Update
[ghstack-poisoned]
2 parents f1b97dc + 284bc17 commit 29c2cfd

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
@@ -90,5 +90,5 @@ def define_common_targets():
9090
# linker failure.
9191
"ovr_config//cpu:arm64": get_sleef_preprocessor_flags(),
9292
"DEFAULT": [],
93-
}) + ["-DET_USE_PYTORCH_HEADERS", "-DSTANDALONE_TORCH_HEADER"],
93+
}) + ["-DSTANDALONE_TORCH_HEADER"] + ([] if runtime.is_oss else ["-DET_USE_PYTORCH_HEADERS"]),
9494
)

0 commit comments

Comments
 (0)