1# Only used for PyTorch open source BUCK build 2 3def _genrule(default_outs = ["."], **kwargs): 4 if read_config("pt", "is_oss", "0") == "0": 5 fail("This file is for open source pytorch build. Do not use it in fbsource!") 6 7 genrule( 8 # default_outs is only needed for internal BUCK 9 **kwargs 10 ) 11 12def _read_config(**kwargs): 13 read_config(**kwargs) 14 15def _filegroup(**kwargs): 16 filegroup(**kwargs) 17 18fb_native = struct( 19 genrule = _genrule, 20 read_config = _read_config, 21 filegroup = _filegroup, 22) 23