Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ build:windows --copt='/Zc:dllexportInlines-'
build:parse_headers --features=parse_headers --process_headers_in_dependencies
# Silence some capnproto warnings/errors that are not relevant for header parsing
build:parse_headers --per_file_copt='.*\.h@-Wno-unused-function,-Wno-pragma-system-header-outside-header'
build:parse_headers --per_file_copt=external/capnp-cpp/src/kj/common.h@-Wno-unreachable-code
build:parse_headers --per_file_copt=external/capnp-cpp/src/capnp/arena.h@-DCAPNP_PRIVATE
build:parse_headers --per_file_copt='external/.*capnp-cpp/src/kj/common.h@-Wno-unreachable-code'
build:parse_headers --per_file_copt='external/.*capnp-cpp/src/capnp/arena.h@-DCAPNP_PRIVATE'

# optimized configuration
build:opt -c opt
Expand Down
4 changes: 3 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ git_override(
# downstream build.
bazel_dep(name = "boringssl", version = "0.20251002.0", repo_name = "ssl")

include("//build/deps:deps.MODULE.bazel")
include("//build/deps:cpp.MODULE.bazel")

include("//build/deps:nodejs.MODULE.bazel")

include("//build/deps:python.MODULE.bazel")

include("//build/deps:rust.MODULE.bazel")

include("//build/deps:v8.MODULE.bazel")
4 changes: 0 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ load("@//build/deps:gen/shared_deps.bzl", shared_deps_gen = "deps_gen")

shared_deps_gen()

load("@//build/deps:gen/deps.bzl", "deps_gen")

deps_gen()

# ========================================================================================
# Rust bootstrap

Expand Down
12 changes: 8 additions & 4 deletions build/deps/deps.MODULE.bazel → build/deps/cpp.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ bazel_dep(name = "brotli", version = "1.1.0")
# We want to avoid version skew with v8, so we use identical versions.

bazel_dep(name = "fast_float")

archive_override(
module_name = "fast_float",
build_file_content = """cc_library(
Expand All @@ -30,7 +29,6 @@ archive_override(
)

bazel_dep(name = "fp16")

archive_override(
module_name = "fp16",
build_file_content = "exports_files(glob([\"**\"]))",
Expand All @@ -46,7 +44,6 @@ archive_override(
)

bazel_dep(name = "highway")

archive_override(
module_name = "highway",
integrity = "sha256-fvP4kFP1D4jUYDZwu5qRXSUr2TMUztaR3fWRPtvE51s=",
Expand Down Expand Up @@ -86,7 +83,6 @@ archive_override(
)

bazel_dep(name = "tcmalloc", repo_name = "com_google_tcmalloc")

archive_override(
module_name = "tcmalloc",
integrity = "sha256-29cSZUwbEyiW8Y7FneaAzNNYLHeBmAPqBuIciHeE/u0=",
Expand All @@ -105,6 +101,14 @@ archive_override(
# Libraries which are not on the BCR
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "capnp-cpp",
sha256 = "03f11165d64c0941c66e749554d3eaf0ea29b6ebe445a82e21557dc68caf6e28",
strip_prefix = "capnproto-capnproto-164284a/c++",
type = "tgz",
url = "https://github.com/capnproto/capnproto/tarball/164284a476eee4bfbcf7cce2a9a82fb156504210",
)

http_archive(
name = "nbytes",
build_file = "//:build/BUILD.nbytes",
Expand Down
13 changes: 0 additions & 13 deletions build/deps/deps.jsonc

This file was deleted.

18 changes: 0 additions & 18 deletions build/deps/gen/dep_capnp_cpp.bzl

This file was deleted.

6 changes: 0 additions & 6 deletions build/deps/gen/deps.bzl

This file was deleted.

1 change: 1 addition & 0 deletions build/deps/rust.MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel_dep(name = "rules_rust", version = "0.65.0")
11 changes: 11 additions & 0 deletions build/deps/update-capnp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

freeze_commit="${COMMIT:-164284a476eee4bfbcf7cce2a9a82fb156504210}"
sha256="${SHA256:-03f11165d64c0941c66e749554d3eaf0ea29b6ebe445a82e21557dc68caf6e28}"
target="//build/deps/cpp.MODULE.bazel:capnp-cpp"

buildozer "set url \"https://github.com/capnproto/capnproto/tarball/${freeze_commit}\"" $target
buildozer "set strip_prefix \"capnproto-capnproto-${freeze_commit:0:7}/c++\"" $target
buildozer "set sha256 \"${sha256}\"" $target
2 changes: 1 addition & 1 deletion build/deps/update-deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SCRIPT_DIR = Path(os.environ["BUILD_WORKSPACE_DIRECTORY"]) / "build" / "deps"

GEN_DIR = SCRIPT_DIR / "gen"
ALL_DEPS = ["deps.jsonc", "build_deps.jsonc", "shared_deps.jsonc"]
ALL_DEPS = ["build_deps.jsonc", "shared_deps.jsonc"]


TOP = "# WARNING: THIS FILE IS AUTOGENERATED BY update-deps.py DO NOT EDIT\n"
Expand Down