mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Differential Revision: D59935630 Pull Request resolved: https://github.com/pytorch/pytorch/pull/131187
18 lines
450 B
Python
18 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)
|
|
)
|