Skip to content

Commit

Permalink
Bazel support (#3406)
Browse files Browse the repository at this point in the history
* Bazel support: Remove not needed .bazelrc file

* Bump tested Bazel version

* Apply buildifier to format Bazel build files

* Add note about Bzlmod
  • Loading branch information
Vertexwahn authored Apr 29, 2023
1 parent f8c9fab commit 5bcf0d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion support/bazel/.bazelrc

This file was deleted.

2 changes: 1 addition & 1 deletion support/bazel/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
6.1.2
4 changes: 2 additions & 2 deletions support/bazel/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ cc_library(
"include/fmt/color.h",
"include/fmt/compile.h",
"include/fmt/core.h",
"include/fmt/format-inl.h",
"include/fmt/format.h",
"include/fmt/format-inl.h",
"include/fmt/os.h",
"include/fmt/ostream.h",
"include/fmt/printf.h",
Expand All @@ -21,7 +21,7 @@ cc_library(
"include/fmt/xchar.h",
],
includes = [
"include",
"include",
],
strip_include_prefix = "include",
visibility = ["//visibility:public"],
Expand Down
3 changes: 3 additions & 0 deletions support/bazel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ The *BUILD* file defines a binary named `Demo` that has a dependency to {fmt}.

To execute the binary you can run `bazel run //:Demo`.

# Using Bzlmod

The [Bazel Central Registry](https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fmt) also provides support for {fmt}.

0 comments on commit 5bcf0d7

Please sign in to comment.