We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1b97dc + 284bc17 commit 29c2cfdCopy full SHA for 29c2cfd
runtime/core/portable_type/c10/c10/targets.bzl
@@ -90,5 +90,5 @@ def define_common_targets():
90
# linker failure.
91
"ovr_config//cpu:arm64": get_sleef_preprocessor_flags(),
92
"DEFAULT": [],
93
- }) + ["-DET_USE_PYTORCH_HEADERS", "-DSTANDALONE_TORCH_HEADER"],
+ }) + ["-DSTANDALONE_TORCH_HEADER"] + ([] if runtime.is_oss else ["-DET_USE_PYTORCH_HEADERS"]),
94
)
0 commit comments