mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:07:10 +08:00
Summary: fmt is a formatting library for C++. It has several properties that make it nice for inclusion in PyTorch: - Widely used - Basically copies how Python does it - Support for all the compilers and platforms we care about - Standards track (C++20) - Small code size - Header only This PR includes it as a submodule and sets up the build. Pull Request resolved: https://github.com/pytorch/pytorch/pull/37356 Differential Revision: D21262619 Pulled By: suo fbshipit-source-id: 1d9a1a5ed08a634213748e7b02fc718ef8dac4c9
10 lines
224 B
Plaintext
10 lines
224 B
Plaintext
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
cc_library(
|
|
name = "fmt",
|
|
hdrs = glob(["include/fmt/*.h",]),
|
|
defines = ["FMT_HEADER_ONLY=1"],
|
|
includes = ["include"],
|
|
visibility = ["//visibility:public"],
|
|
)
|