Skip to content
Merged
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
32 changes: 16 additions & 16 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -469,18 +469,18 @@ crate.annotation(

inject_repo(crate, "alsa_lib")

bazel_dep(name = "v8", version = "14.9.207.2")
bazel_dep(name = "v8", version = "15.0.245.2")
archive_override(
module_name = "v8",
integrity = "sha256-tflbZE5srqal6leMxJjK/ZQtwpF96OMGJ6avd5lice4=",
integrity = "sha256-Fk89PgqLTAKjhtOojRsRM9N+XCC+Ajn+zc3eQUpDQNU=",
patch_strip = 3,
patches = [
"//patches:v8_module_deps.patch",
"//patches:v8_bazel_rules.patch",
"//patches:v8_source_portability.patch",
],
strip_prefix = "v8-14.9.207.2",
urls = ["https://github.com/v8/v8/archive/refs/tags/14.9.207.2.tar.gz"],
strip_prefix = "v8-15.0.245.2",
urls = ["https://github.com/v8/v8/archive/refs/tags/15.0.245.2.tar.gz"],
)

http_archive(
Expand All @@ -493,20 +493,20 @@ http_archive(
)

http_archive(
name = "v8_crate_149_2_0",
name = "v8_crate_150_4_0",
build_file = "//third_party/v8:v8_crate.BUILD.bazel",
sha256 = "46dccf61a364b61bbaac70a8ba64a1a1006e87123b7d62eaeec999a3ba31ecdb",
strip_prefix = "v8-149.2.0",
sha256 = "42a978ff11f15b24e5c05a7123cf2b68f41e763546699781a924ef4e2cf43a49",
strip_prefix = "v8-150.4.0",
type = "tar.gz",
urls = ["https://static.crates.io/crates/v8/v8-149.2.0.crate"],
urls = ["https://static.crates.io/crates/v8/v8-150.4.0.crate"],
)

git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "rusty_v8_libcxx",
build_file = "//third_party/v8:libcxx.BUILD.bazel",
commit = "99457fa555797f8c5ac3c076ca288d8481d3b23a",
commit = "5abc7f839700f0f17338434e1c1c6a8c87c00c11",
remote = "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git",
)

Expand All @@ -520,25 +520,25 @@ git_repository(
git_repository(
name = "rusty_v8_llvm_libc",
build_file = "//third_party/v8:llvm_libc.BUILD.bazel",
commit = "cb952785ccee13811f293f3c419958d1e3ddafbf",
commit = "9309c117ebae84dd2f9df1ef99de4782162527d5",
remote = "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libc.git",
)

http_file(
name = "rusty_v8_149_2_0_aarch64_pc_windows_msvc_archive",
name = "rusty_v8_150_4_0_aarch64_pc_windows_msvc_archive",
downloaded_file_path = "rusty_v8_release_aarch64-pc-windows-msvc.lib.gz",
sha256 = "923f2b6ccdc14526b814e171e34c9aafd7969f12304948857c6696d022f0fb3c",
sha256 = "ce9f2e4321e0dd4bc64882b6daefc028863608ed934e387a98ca384f1f7923f8",
urls = [
"https://github.com/denoland/rusty_v8/releases/download/v149.2.0/rusty_v8_release_aarch64-pc-windows-msvc.lib.gz",
"https://github.com/denoland/rusty_v8/releases/download/v150.4.0/rusty_v8_release_aarch64-pc-windows-msvc.lib.gz",
],
)

http_file(
name = "rusty_v8_149_2_0_x86_64_pc_windows_msvc_archive",
name = "rusty_v8_150_4_0_x86_64_pc_windows_msvc_archive",
downloaded_file_path = "rusty_v8_release_x86_64-pc-windows-msvc.lib.gz",
sha256 = "12b5a791b54e92f748738ad8d0d12dad8d281a2d836638ad1aa6678e3b855d9a",
sha256 = "571bf6a028576ac1413c8a942383f637f91e94b0c964bbeefff8a098637aaa40",
urls = [
"https://github.com/denoland/rusty_v8/releases/download/v149.2.0/rusty_v8_release_x86_64-pc-windows-msvc.lib.gz",
"https://github.com/denoland/rusty_v8/releases/download/v150.4.0/rusty_v8_release_x86_64-pc-windows-msvc.lib.gz",
],
)

Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions codex-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codex-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ unicode-width = "0.2"
url = "2"
urlencoding = "2.1"
uuid = "1"
v8 = "=149.2.0"
v8 = "=150.4.0"
vt100 = "0.16.2"
walkdir = "2.5.0"
webbrowser = "1.0"
Expand Down
37 changes: 28 additions & 9 deletions patches/v8_bazel_rules.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Scope: Bazel BUILD/defs/BUILD.icu integration only, including dependency
# wiring, generated sources, and visibility; no standalone V8 source patching.

diff --git a/orig/v8-14.9.207.2/bazel/defs.bzl b/mod/v8-14.9.207.2/bazel/defs.bzl
diff --git a/orig/v8-15.0.245.2/bazel/defs.bzl b/mod/v8-15.0.245.2/bazel/defs.bzl
index bbe1495..6673518 100644
--- a/orig/v8-14.9.207.2/bazel/defs.bzl
+++ b/mod/v8-14.9.207.2/bazel/defs.bzl
--- a/orig/v8-15.0.245.2/bazel/defs.bzl
+++ b/mod/v8-15.0.245.2/bazel/defs.bzl
@@ -33,9 +33,21 @@ _create_option_int = rule(
)

Expand Down Expand Up @@ -154,10 +154,10 @@ index bbe1495..6673518 100644
suffix = suffix,
target_os = select({
"@v8//bazel/config:is_macos": "mac",
diff --git a/orig/v8-14.9.207.2/BUILD.bazel b/mod/v8-14.9.207.2/BUILD.bazel
diff --git a/orig/v8-15.0.245.2/BUILD.bazel b/mod/v8-15.0.245.2/BUILD.bazel
index b432f86..28c567b 100644
--- a/orig/v8-14.9.207.2/BUILD.bazel
+++ b/mod/v8-14.9.207.2/BUILD.bazel
--- a/orig/v8-15.0.245.2/BUILD.bazel
+++ b/mod/v8-15.0.245.2/BUILD.bazel
@@ -148,6 +148,10 @@ v8_flag(name = "v8_enable_trace_maps")

v8_flag(name = "v8_enable_v8_checks")
Expand Down Expand Up @@ -302,6 +302,25 @@ index b432f86..28c567b 100644
filegroup(
name = "d8_files",
srcs = [
@@ -4576,12 +4614,10 @@ cc_library(
strip_include_prefix = "noicu",
)
-
+
-cc_library(
- name = "llvm_libc_headers",
- hdrs = glob(["third_party/llvm-libc/src/shared/**/*.h"]),
- includes = ["third_party/llvm-libc/src"],
- defines = ["LIBC_NAMESPACE=__llvm_libc_cr"],
-)
+alias(
+ name = "llvm_libc_headers",
+ actual = "@@//third_party/v8:rusty_v8_llvm_libc_headers",
+)
-
+
v8_library(
name = "v8_libbase",
@@ -4603,16 +4641,9 @@ cc_library(
],
)
Expand Down Expand Up @@ -379,10 +398,10 @@ index b432f86..28c567b 100644
}),
noicu_deps = [":v8_libshared_noicu"],
noicu_srcs = [
diff --git a/orig/v8-14.9.207.2/bazel/BUILD.icu b/mod/v8-14.9.207.2/bazel/BUILD.icu
diff --git a/orig/v8-15.0.245.2/bazel/BUILD.icu b/mod/v8-15.0.245.2/bazel/BUILD.icu
index 5fda2f4..8c3c372 100644
--- a/orig/v8-14.9.207.2/bazel/BUILD.icu
+++ b/mod/v8-14.9.207.2/bazel/BUILD.icu
--- a/orig/v8-15.0.245.2/bazel/BUILD.icu
+++ b/mod/v8-15.0.245.2/bazel/BUILD.icu
@@ -1,3 +1,24 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
Expand Down
10 changes: 5 additions & 5 deletions patches/v8_module_deps.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Scope: upstream MODULE.bazel only; affects external repo resolution and Bazel
# module wiring, not V8 source files.

diff --git a/orig/v8-14.9.207.2/MODULE.bazel b/mod/v8-14.9.207.2/MODULE.bazel
diff --git a/orig/v8-15.0.245.2/MODULE.bazel b/mod/v8-15.0.245.2/MODULE.bazel
index b8bf8bd..573f463 100644
--- a/orig/v8-14.9.207.2/MODULE.bazel
+++ b/mod/v8-14.9.207.2/MODULE.bazel
--- a/orig/v8-15.0.245.2/MODULE.bazel
+++ b/mod/v8-15.0.245.2/MODULE.bazel
@@ -8,193 +8,67 @@ bazel_dep(name = "rules_cc", version = "0.2.0")
bazel_dep(name = "rules_python", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.0.0")
Expand Down Expand Up @@ -252,11 +252,11 @@ index b8bf8bd..573f463 100644
+ ],
)
+use_repo(pip, "v8_python_deps")
diff --git a/mod/v8-14.9.207.2/bazel/highway.patch b/mod/v8-14.9.207.2/bazel/highway.patch
diff --git a/mod/v8-15.0.245.2/bazel/highway.patch b/mod/v8-15.0.245.2/bazel/highway.patch
new file mode 100644
index 0000000..5a13dd0
--- /dev/null
+++ b/mod/v8-14.9.207.2/bazel/highway.patch
+++ b/mod/v8-15.0.245.2/bazel/highway.patch
@@ -0,0 +1,25 @@
+diff --git a/BUILD b/BUILD
+--- a/BUILD
Expand Down
Loading
Loading