Skip to content

Commit 30a2145

Browse files
committed
Update
[ghstack-poisoned]
2 parents 7336ff1 + 29c2cfd commit 30a2145

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)