Skip to content

Commit

Permalink
[build] Do not have //src/workerd/io depend on src/cloudflare, src/node
Browse files Browse the repository at this point in the history
This was making io depend on the gen-compile-cache binary, which delayed
building source files in io and creating a bottleneck.

Drive-by: Fix LLVM 20 operator warnings
  • Loading branch information
fhanau committed Jan 17, 2025
1 parent 5377f9f commit b324f9c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/workerd/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ wd_cc_library(
":memory-cache",
":pyodide",
":r2",
"//src/cloudflare",
"//src/node",
"//src/pyodide",
"//src/pyodide:pyodide_extra_capnp",
"//src/workerd/api/node",
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("//:build/kj_test.bzl", "kj_test")
load("//:build/wd_cc_library.bzl", "wd_cc_library")
load("//:build/wd_test.bzl", "wd_test")
Expand Down Expand Up @@ -29,6 +28,7 @@ wd_cc_library(
visibility = ["//visibility:public"],
deps = [
":node-core",
"//src/node",
"@capnp-cpp//src/kj/compat:kj-brotli",
],
)
Expand Down
2 changes: 0 additions & 2 deletions src/workerd/io/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ wd_cc_library(
":supported-compatibility-date_capnp",
":trace",
":worker-interface",
"//src/cloudflare",
"//src/node",
"//src/workerd/api:analytics-engine_capnp",
"//src/workerd/api:data-url",
"//src/workerd/api:deferred-proxy",
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/jsg/url.c++
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,6 @@ UrlPattern::UrlPattern(kj::Array<Component> components, bool ignoreCase)

} // namespace workerd::jsg

const workerd::jsg::Url operator"" _url(const char* str, size_t size) {
const workerd::jsg::Url operator""_url(const char* str, size_t size) {
return KJ_ASSERT_NONNULL(workerd::jsg::Url::tryParse(kj::ArrayPtr<const char>(str, size)));
}
2 changes: 2 additions & 0 deletions src/workerd/server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ wd_cc_library(
":alarm-scheduler",
":workerd_capnp",
"//deps/rust:runtime",
"//src/cloudflare",
"//src/node",
"//src/workerd/api:html-rewriter",
"//src/workerd/api:hyperdrive",
"//src/workerd/api:memory-cache",
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/server/server-test.c++
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ kj::Own<config::Config::Reader> parseConfig(kj::StringPtr text, kj::SourceLocati
// This is intended to allow multi-line raw text to be specified conveniently using C++11
// `R"(blah)"` literal syntax, without the need to mess up indentation relative to the
// surrounding code.
kj::String operator"" _blockquote(const char* str, size_t n) {
kj::String operator""_blockquote(const char* str, size_t n) {
kj::StringPtr text(str, n);

// Ignore a leading newline so that `R"(` can be placed on the line before the initial indent.
Expand Down
2 changes: 2 additions & 0 deletions src/workerd/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cc_ast_dump(
"//conditions:default": [],
}),
deps = [
"//src/cloudflare",
"//src/node",
"//src/workerd/api:html-rewriter",
"//src/workerd/api:hyperdrive",
"//src/workerd/api:memory-cache",
Expand Down

0 comments on commit b324f9c

Please sign in to comment.