Skip to content

Commit 4562f50

Browse files
committed
12-22-25 build cleanup
Add more missing cc_library imports for Bazel 9 `bazel sync` is deprecated under bzlmod, replace with `bazel fetch` now that we have mostly completed the transition Fix running clang-tidy under macOS after the repo name changed when clang-tidy moved to bzlmod Fix comments to point to correct file for node version
1 parent ed3c1af commit 4562f50

File tree

11 files changed

+14
-7
lines changed

11 files changed

+14
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The compiled binary will be located at `bazel-bin/src/workerd/server/workerd`.
103103
If you run a Bazel build before you've installed some dependencies (like clang or libc++), and then you install the dependencies, you must resync locally cached toolchains, or clean Bazel's cache, otherwise you might get strange errors:
104104

105105
```sh
106-
bazel sync --configure
106+
bazel fetch --configure --force
107107
```
108108

109109
If that fails, you can try:

build/BUILD.nbytes

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

build/BUILD.simdutf

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

build/BUILD.zlib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# than x86_64 or arm64
66

77
load("@bazel_skylib//lib:selects.bzl", "selects")
8+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
89

910
zlib_warnings = [
1011
"-Wno-incompatible-pointer-types",

deps/rust/BUILD.lolhtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
2+
13
cc_library(
24
name = "lolhtml",
35
hdrs = ["@crates_vendor__lol_html_c_api-1.3.0//:include/lol_html.h"],

src/workerd/api/node/tests/http-agent-nodejs-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://opensource.org/licenses/Apache-2.0
44

55
// This is a sidecar that runs alongside the http-client-nodejs-test.* tests.
6-
// It is executed using the appropriate Node.js version defined in WORKSPACE.
6+
// It is executed using the appropriate Node.js version defined in build/deps/nodejs.MODULE.bazel.
77
const http = require('node:http');
88

99
function reportAddress(server) {

src/workerd/api/node/tests/http-client-nodejs-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://opensource.org/licenses/Apache-2.0
44

55
// This is a sidecar that runs alongside the http-client-nodejs-test.* tests.
6-
// It is executed using the appropriate Node.js version defined in WORKSPACE.
6+
// It is executed using the appropriate Node.js version defined in build/deps/nodejs.MODULE.bazel.
77
const http = require('node:http');
88
const assert = require('node:assert/strict');
99

src/workerd/api/node/tests/http-nodejs-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://opensource.org/licenses/Apache-2.0
44

55
// This is a sidecar that runs alongside the http-client-nodejs-test.* tests.
6-
// It is executed using the appropriate Node.js version defined in WORKSPACE.
6+
// It is executed using the appropriate Node.js version defined in build/deps/nodejs.MODULE.bazel.
77
const http = require('node:http');
88
const assert = require('node:assert/strict');
99

src/workerd/api/node/tests/http-outgoing-nodejs-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://opensource.org/licenses/Apache-2.0
44

55
// This is a sidecar that runs alongside the http-client-nodejs-test.* tests.
6-
// It is executed using the appropriate Node.js version defined in WORKSPACE.
6+
// It is executed using the appropriate Node.js version defined in build/deps/nodejs.MODULE.bazel.
77
const http = require('node:http');
88
const assert = require('node:assert/strict');
99

src/workerd/api/node/tests/http-server-nodejs-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://opensource.org/licenses/Apache-2.0
44

55
// This is a sidecar that runs alongside the http-client-nodejs-test.* tests.
6-
// It is executed using the appropriate Node.js version defined in WORKSPACE.
6+
// It is executed using the appropriate Node.js version defined in build/deps/nodejs.MODULE.bazel.
77
const http = require('node:http');
88

99
function reportPort(server) {

0 commit comments

Comments
 (0)