I’m also trying to build libtorch from source with a build system similar to buck (bazel). I just checked build_libtorch.py and build_variables.py, but still feel lost about how these scripts work. i can see there are a few custom rules in build_variables.py, but why these rules can be used directly in a bazel scripts?
also wondering if you can share your progress on this. Any sharing and suggestion would be really appreciated! Thanks!