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
16 lines
393 B
Python
16 lines
393 B
Python
# Only used for PyTorch open source BUCK build
|
|
|
|
load(":buck_helpers.bzl", "filter_attributes")
|
|
|
|
def fb_xplat_cxx_library(
|
|
name,
|
|
extra_flags = {},
|
|
**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_library(
|
|
name = name,
|
|
**filter_attributes(kwgs)
|
|
)
|