Lightweight coding agent that runs in your terminal
Rust
fix(bazel): fix simdutf (#16925)
Owen Lin2b4cc221df31
diff --git a/patches/v8_bazel_rules.patch b/patches/v8_bazel_rules.patchindex 5457e3b854..10e1a57679 100644--- a/patches/v8_bazel_rules.patch+++ b/patches/v8_bazel_rules.patch@@ -191,7 +191,6 @@ index 85f31b7..7314584 100644+ actual = "@simdutf//:simdutf",)- v8_library(@@ -4593,7 +4598,7 @@ v8_library(copts = ["-Wno-implicit-fallthrough"],icu_deps = [diff --git a/patches/v8_module_deps.patch b/patches/v8_module_deps.patchindex 6c35dbacd4..8f0fed9cf4 100644--- a/patches/v8_module_deps.patch+++ b/patches/v8_module_deps.patch@@ -6,7 +6,7 @@diff --git a/orig/v8-14.6.202.11/MODULE.bazel b/mod/v8-14.6.202.11/MODULE.bazel--- a/orig/v8-14.6.202.11/MODULE.bazel+++ b/mod/v8-14.6.202.11/MODULE.bazel-@@ -8,7 +8,57 @@+@@ -8,7 +8,65 @@bazel_dep(name = "rules_python", version = "1.0.0")bazel_dep(name = "platforms", version = "1.0.0")bazel_dep(name = "abseil-cpp", version = "20250814.0")@@ -42,11 +42,12 @@ diff --git a/orig/v8-14.6.202.11/MODULE.bazel b/mod/v8-14.6.202.11/MODULE.bazel+ urls = ["https://github.com/fastfloat/fast_float/archive/refs/tags/v8.0.2.tar.gz"],+)+-+git_repository(++http_archive(+ name = "simdutf",-+ build_file_content = 'load("@rules_cc//cc:defs.bzl", "cc_library")\n\ncc_library(\n name = "simdutf",\n srcs = ["simdutf.cpp"],\n hdrs = ["simdutf.h"],\n copts = ["-std=c++20"],\n include_prefix = "third_party/simdutf",\n visibility = ["//visibility:public"],\n)\n',-+ commit = "93b35aec29256f705c97f675fe4623578bd7a395",-+ remote = "https://chromium.googlesource.com/chromium/src/third_party/simdutf",++ build_file_content = 'load("@rules_cc//cc:defs.bzl", "cc_library")\n\ncc_library(\n name = "simdutf",\n srcs = ["src/simdutf.cpp"],\n hdrs = glob(["include/**/*.h"]),\n textual_hdrs = glob(["src/**/*.h", "src/**/*.cpp"], exclude = ["src/simdutf.cpp"]),\n copts = ["-std=c++20"],\n include_prefix = "third_party/simdutf",\n includes = ["include", "src"],\n strip_include_prefix = "include",\n visibility = ["//visibility:public"],\n)\n',++ sha256 = "0180de81a1dd48a87b8c0442ffa81734f3db91a7350914107a449935124e3c6f",++ strip_prefix = "simdutf-7.7.0",++ urls = ["https://github.com/simdutf/simdutf/archive/refs/tags/v7.7.0.tar.gz"],+)++git_repository(@@ -65,7 +66,7 @@ diff --git a/orig/v8-14.6.202.11/MODULE.bazel b/mod/v8-14.6.202.11/MODULE.bazelpip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")pip.parse(-@@ -22,171 +72,3 @@+@@ -22,171 +80,3 @@)use_repo(pip, "v8_python_deps")