mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Differential Revision: D59935630 Pull Request resolved: https://github.com/pytorch/pytorch/pull/131187
19 lines
450 B
Python
19 lines
450 B
Python
# Only used for PyTorch open source BUCK build
|
|
|
|
load(":buck_helpers.bzl", "filter_attributes")
|
|
|
|
def fb_xplat_cxx_test(
|
|
name,
|
|
deps = [],
|
|
**kwgs):
|
|
if read_config("pt", "is_oss", "0") == "0":
|
|
fail("This file is for open source pytorch build. Do not use it in fbsource!")
|
|
|
|
cxx_test(
|
|
name = name,
|
|
deps = deps + [
|
|
"//third_party:gtest",
|
|
],
|
|
**filter_attributes(kwgs)
|
|
)
|