Migrate Bazel build to use Bzlmod

This commit is contained in:
Martin Hořeňovský 2025-01-05 14:38:51 +01:00
parent 0321d2fce3
commit a3b67a3abe
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
3 changed files with 4 additions and 16 deletions

View File

@ -1,3 +1,6 @@
# Enable Bzlmod for every Bazel command
common --enable_bzlmod
build --enable_platform_specific_config build --enable_platform_specific_config
build:gcc9 --cxxopt=-std=c++2a build:gcc9 --cxxopt=-std=c++2a

View File

@ -1,3 +1,4 @@
module(name = "catch2") module(name = "catch2")
bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_cc", version = "0.0.17")

View File

@ -1,16 +0,0 @@
workspace(name = "catch2")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()