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.
1 parent 9a93839 commit 7f57a19Copy full SHA for 7f57a19
runtime/core/portable_type/c10/c10/targets.bzl
@@ -87,5 +87,5 @@ def define_common_targets():
87
# linker failure.
88
"ovr_config//cpu:arm64": get_sleef_preprocessor_flags(),
89
"DEFAULT": [],
90
- }) + ["-DET_USE_PYTORCH_HEADERS", "-DSTANDALONE_TORCH_HEADER"],
+ }) + ["-DSTANDALONE_TORCH_HEADER"] + ([] if runtime.is_oss else ["-DET_USE_PYTORCH_HEADERS"]),
91
)
0 commit comments