Files
pytorch/torch/headeronly/build.bzl
Jane Xu 30587195d3 Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035)
Summary: As above, also changes a bunch of the build files to be better

Test Plan:
internal and external CI

did run buck2 build fbcode//caffe2:torch and it succeeded

Rollback Plan:

Reviewed By: swolchok

Differential Revision: D78016591

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158035
Approved by: https://github.com/swolchok
2025-07-15 19:52:59 +00:00

12 lines
266 B
Python

def define_targets(rules):
rules.cc_library(
name = "torch_headeronly",
hdrs = rules.glob([
"**/*.h"
]),
visibility = ["//visibility:public"],
deps = [
"//torch/headeronly/macros",
],
)