Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVertexwahn2022-09-18 15:03:38 +0200
committerMartin Hořeňovský2022-09-27 22:06:12 +0200
commit4bb7e02a9c48dc916d2bdf45105f90785a7e01d2 (patch)
tree47336f31d25b1ac5dc2db43eb923940ab41bfccc
parent97d0b1e00ed198eb74351874aa8b42423b93c67a (diff)
downloadcatch3-4bb7e02a9c48dc916d2bdf45105f90785a7e01d2.tar.gz
Bazel build: Update of skylib
-rw-r--r--.bazelrc3
-rw-r--r--BUILD.bazel4
-rw-r--r--WORKSPACE14
-rw-r--r--WORKSPACE.bazel15
4 files changed, 18 insertions, 18 deletions
diff --git a/.bazelrc b/.bazelrc
index 55f17a67..94b36bff 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,4 +1,5 @@
build:gcc9 --cxxopt=-std=c++2a
+build:gcc11 --cxxopt=-std=c++2a
build:clang13 --cxxopt=-std=c++17
build:vs2019 --cxxopt=/std:c++17
-build:vs2022 --cxxopt=/std:c++17 \ No newline at end of file
+build:vs2022 --cxxopt=/std:c++17
diff --git a/BUILD.bazel b/BUILD.bazel
index 7c443516..775491fa 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -1,5 +1,3 @@
-# Load the cc_library rule.
-load("@rules_cc//cc:defs.bzl", "cc_library")
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
expand_template(
@@ -88,4 +86,4 @@ cc_library(
linkstatic = True,
visibility = ["//visibility:public"],
deps = [":catch2"],
-) \ No newline at end of file
+)
diff --git a/WORKSPACE b/WORKSPACE
deleted file mode 100644
index 2f265da0..00000000
--- a/WORKSPACE
+++ /dev/null
@@ -1,14 +0,0 @@
-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
-
-http_archive(
- name = "bazel_skylib",
- strip_prefix = "bazel-skylib-2a87d4a62af886fb320883aba102255aba87275e",
- urls = [
- "https://github.com/bazelbuild/bazel-skylib/archive/2a87d4a62af886fb320883aba102255aba87275e.tar.gz",
- ],
- sha256 = "d847b08d6702d2779e9eb399b54ff8920fa7521dc45e3e53572d1d8907767de7",
-)
-
-load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
-
-bazel_skylib_workspace() \ No newline at end of file
diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel
new file mode 100644
index 00000000..6fd2ffa5
--- /dev/null
+++ b/WORKSPACE.bazel
@@ -0,0 +1,15 @@
+workspace(name = "catch2")
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+ name = "bazel_skylib",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
+ ],
+ sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
+)
+
+load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
+bazel_skylib_workspace()