summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-v8_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-v8_BUILD.gn')
-rw-r--r--www/chromium/files/patch-v8_BUILD.gn43
1 files changed, 25 insertions, 18 deletions
diff --git a/www/chromium/files/patch-v8_BUILD.gn b/www/chromium/files/patch-v8_BUILD.gn
index ae13e3cd9bfd..95e6314ebd70 100644
--- a/www/chromium/files/patch-v8_BUILD.gn
+++ b/www/chromium/files/patch-v8_BUILD.gn
@@ -1,21 +1,28 @@
---- v8/BUILD.gn.orig 2024-04-19 13:02:56 UTC
+--- v8/BUILD.gn.orig 2024-06-17 12:56:06 UTC
+++ v8/BUILD.gn
-@@ -1455,6 +1455,14 @@ config("toolchain") {
- } else if (target_os == "chromeos") {
- defines += [ "V8_HAVE_TARGET_OS" ]
- defines += [ "V8_TARGET_OS_CHROMEOS" ]
-+ } else if (target_os == "openbsd") {
-+ defines += [ "V8_HAVE_TARGET_OS" ]
-+ defines += [ "V8_TARGET_OS_OPENBSD" ]
-+ defines += [ "V8_TARGET_OS_BSD" ]
-+ } else if (target_os == "freebsd") {
-+ defines += [ "V8_HAVE_TARGET_OS" ]
-+ defines += [ "V8_TARGET_OS_FREEBSD" ]
-+ defines += [ "V8_TARGET_OS_BSD" ]
- }
+@@ -890,6 +890,8 @@ external_v8_defines = [
+ "V8_TARGET_OS_MACOS",
+ "V8_TARGET_OS_WIN",
+ "V8_TARGET_OS_CHROMEOS",
++ "V8_TARGET_OS_OPENBSD",
++ "V8_TARGET_OS_FREEBSD",
+ ]
+
+ enabled_external_v8_defines = []
+@@ -962,6 +964,12 @@ if (target_os == "android") {
+ } else if (target_os == "chromeos") {
+ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
+ enabled_external_v8_defines += [ "V8_TARGET_OS_CHROMEOS" ]
++} else if (target_os == "openbsd") {
++ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
++ enabled_external_v8_defines += [ "V8_TARGET_OS_OPENBSD" ]
++} else if (target_os == "freebsd") {
++ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
++ enabled_external_v8_defines += [ "V8_TARGET_OS_FREEBSD" ]
+ }
- # TODO(infra): Support v8_enable_prof on Windows.
-@@ -2442,6 +2450,12 @@ template("run_mksnapshot") {
+ disabled_external_v8_defines = external_v8_defines - enabled_external_v8_defines
+@@ -2458,6 +2466,12 @@ template("run_mksnapshot") {
if (!v8_enable_builtins_profiling && v8_enable_builtins_reordering) {
args += [ "--reorder-builtins" ]
}
@@ -28,7 +35,7 @@
}
# This is needed to distinguish between generating code for the simulator
-@@ -6448,7 +6462,7 @@ v8_component("v8_libbase") {
+@@ -6495,7 +6509,7 @@ v8_component("v8_libbase") {
}
}
@@ -37,7 +44,7 @@
sources += [
"src/base/debug/stack_trace_posix.cc",
"src/base/platform/platform-linux.cc",
-@@ -6459,6 +6473,18 @@ v8_component("v8_libbase") {
+@@ -6506,6 +6520,18 @@ v8_component("v8_libbase") {
"dl",
"rt",
]