diff --git a/.bazelrc b/.bazelrc index 9cb0aa1b..6084470e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,6 @@ +# Enable Bzlmod for every Bazel command +common --enable_bzlmod + build --enable_platform_specific_config build:gcc9 --cxxopt=-std=c++2a diff --git a/MODULE.bazel b/MODULE.bazel index 4d7ec860..628d77a0 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,3 +1,4 @@ module(name = "catch2") bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "rules_cc", version = "0.0.17") diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel deleted file mode 100644 index e48080a4..00000000 --- a/WORKSPACE.bazel +++ /dev/null @@ -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()