diff --git a/modules/fmt/11.0.1/MODULE.bazel b/modules/fmt/11.0.1/MODULE.bazel new file mode 100644 index 00000000000..77b7f4294c6 --- /dev/null +++ b/modules/fmt/11.0.1/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "fmt", + version = "11.0.1", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 10, +) + +bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/fmt/11.0.1/overlay/BUILD.bazel b/modules/fmt/11.0.1/overlay/BUILD.bazel new file mode 100644 index 00000000000..dba44eb267f --- /dev/null +++ b/modules/fmt/11.0.1/overlay/BUILD.bazel @@ -0,0 +1,18 @@ +cc_library( + name = "fmt", + srcs = [ + #"src/fmt.cc", # No C++ module support, yet in Bazel (https://github.com/bazelbuild/bazel/pull/19940) + "src/format.cc", + "src/os.cc", + ], + hdrs = glob([ + "include/fmt/*.h", + ]), + copts = select({ + "@platforms//os:windows": ["-utf-8"], + "//conditions:default": [], + }), + includes = ["include"], + strip_include_prefix = "include", # workaround: only needed on some macOS systems (see https://github.com/bazelbuild/bazel-central-registry/issues/1537) + visibility = ["//visibility:public"], +) diff --git a/modules/fmt/11.0.1/overlay/MODULE.bazel b/modules/fmt/11.0.1/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/fmt/11.0.1/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/fmt/11.0.1/presubmit.yml b/modules/fmt/11.0.1/presubmit.yml new file mode 100644 index 00000000000..487e9389b60 --- /dev/null +++ b/modules/fmt/11.0.1/presubmit.yml @@ -0,0 +1,26 @@ +matrix: + unix_platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + windows_test: + - windows + bazel: [7.x] +tasks: + unix_test: + name: Verify build targets + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_targets: + - '@fmt//:fmt' + windows_test: + name: Verify build targets + platform: ${{ windows_test }} + bazel: ${{ bazel }} + build_flags: + - --cxxopt=/utf-8 + build_targets: + - '@fmt//:fmt' diff --git a/modules/fmt/11.0.1/source.json b/modules/fmt/11.0.1/source.json new file mode 100644 index 00000000000..feabd01193a --- /dev/null +++ b/modules/fmt/11.0.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/fmtlib/fmt/releases/download/11.0.1/fmt-11.0.1.zip", + "integrity": "sha256-YspFUxgUEJtdbO8M8v0X25LDKjDdIwEpdudoxoVTSBQ=", + "strip_prefix": "fmt-11.0.1", + "patch_strip": 0, + "overlay": { + "MODULE.bazel": "sha256-c3HCT6IgOILopTREemiOqkPvzQLG80/svQplDbJCALE=", + "BUILD.bazel": "sha256-n/TmPiGOx6HketgmAHPAweorXhPcP7OUUBbm9g9tQTs=" + } +} diff --git a/modules/fmt/metadata.json b/modules/fmt/metadata.json index 2dd63b2bb8e..9ed2925410f 100644 --- a/modules/fmt/metadata.json +++ b/modules/fmt/metadata.json @@ -19,7 +19,8 @@ "10.2.0", "10.2.1", "10.2.1.bcr.1", - "11.0.0" + "11.0.0", + "11.0.1" ], "yanked_versions": {} }