Skip to content

Commit 03d5ed7

Browse files
fhanauanonrig
authored andcommitted
[build] Establish compatibility with Bazel 9
- Also gets rid of remaining workspace usage and updates boringssl.
1 parent 4a5f030 commit 03d5ed7

File tree

7 files changed

+319
-136
lines changed

7 files changed

+319
-136
lines changed

.bazelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
common --enable_workspace
21
build --cxxopt="-std=c++20"

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.0.0
1+
9.0.0rc6

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
2+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
23

34
bool_flag(
45
name = "bssl_libdecrepit_missing",

MODULE.bazel

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
bazel_dep(name = "googletest", version = "1.15.2")
1+
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
2+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
3+
bazel_dep(name = "boringssl", version = "0.20251002.0", repo_name = "ssl")
4+
bazel_dep(name = "rules_cc", version = "0.2.16")
5+
6+
archive_override(
7+
module_name = "boringssl",
8+
patch_strip = 1,
9+
patches = [
10+
"//:patches/0001-Expose-libdecrepit-so-NodeJS-can-use-it-for-ncrypto.patch",
11+
],
12+
sha256 = "f96733fc3df03d4195db656d1b7b8c174c33f95d052f811f0ecc8f4e4e3db332",
13+
strip_prefix = "boringssl-0.20251002.0",
14+
type = "tgz",
15+
urls = ["https://github.com/google/boringssl/archive/refs/tags/0.20251002.0.tar.gz"],
16+
)

MODULE.bazel.lock

Lines changed: 299 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WORKSPACE

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
2+
13
cc_test(
24
name = "basic",
35
srcs = ["basic.cpp"],

0 commit comments

Comments
 (0)