1# Only used for PyTorch open source BUCK build 2 3load(":buck_helpers.bzl", "filter_attributes") 4 5def fb_xplat_cxx_library( 6 name, 7 extra_flags = {}, 8 **kwgs): 9 if read_config("pt", "is_oss", "0") == "0": 10 fail("This file is for open source pytorch build. Do not use it in fbsource!") 11 12 cxx_library( 13 name = name, 14 **filter_attributes(kwgs) 15 ) 16