aboutsummaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-v8_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-v8_BUILD.gn')
-rw-r--r--www/iridium/files/patch-v8_BUILD.gn43
1 files changed, 25 insertions, 18 deletions
diff --git a/www/iridium/files/patch-v8_BUILD.gn b/www/iridium/files/patch-v8_BUILD.gn
index c0715b45cbaa..eea79d7b7aa0 100644
--- a/www/iridium/files/patch-v8_BUILD.gn
+++ b/www/iridium/files/patch-v8_BUILD.gn
@@ -1,21 +1,28 @@
---- v8/BUILD.gn.orig 2024-02-04 14:46:08 UTC
+--- v8/BUILD.gn.orig 2024-06-25 12:08:48 UTC
+++ v8/BUILD.gn
-@@ -1425,6 +1425,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.
-@@ -2388,6 +2396,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
-@@ -6248,7 +6262,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",
-@@ -6259,6 +6273,18 @@ v8_component("v8_libbase") {
+@@ -6506,6 +6520,18 @@ v8_component("v8_libbase") {
"dl",
"rt",
]