summaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-v8_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-v8_BUILD.gn')
-rw-r--r--devel/electron33/files/patch-v8_BUILD.gn65
1 files changed, 0 insertions, 65 deletions
diff --git a/devel/electron33/files/patch-v8_BUILD.gn b/devel/electron33/files/patch-v8_BUILD.gn
deleted file mode 100644
index b968875c5104..000000000000
--- a/devel/electron33/files/patch-v8_BUILD.gn
+++ /dev/null
@@ -1,65 +0,0 @@
---- v8/BUILD.gn.orig 2024-10-16 21:34:41 UTC
-+++ v8/BUILD.gn
-@@ -907,6 +907,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 = [
-@@ -983,6 +985,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" ]
- }
-
- disabled_external_v8_defines = external_v8_defines - enabled_external_v8_defines
-@@ -2535,6 +2543,12 @@ template("run_mksnapshot") {
- if (!v8_enable_builtins_profiling && v8_enable_builtins_reordering) {
- args += [ "--reorder-builtins" ]
- }
-+
-+ if (v8_current_cpu == "x86") {
-+ args -= [
-+ "--abort-on-bad-builtin-profile-data",
-+ ]
-+ }
- }
-
- if (v8_enable_turboshaft_csa) {
-@@ -6625,7 +6639,7 @@ v8_component("v8_libbase") {
- }
- }
-
-- if (is_linux || is_chromeos) {
-+ if ((is_linux || is_chromeos) && !is_bsd) {
- sources += [
- "src/base/debug/stack_trace_posix.cc",
- "src/base/platform/platform-linux.cc",
-@@ -6636,6 +6650,18 @@ v8_component("v8_libbase") {
- "dl",
- "rt",
- ]
-+ } else if (is_openbsd) {
-+ sources += [
-+ "src/base/debug/stack_trace_posix.cc",
-+ "src/base/platform/platform-openbsd.cc",
-+ ]
-+ libs = [ "execinfo" ]
-+ } else if (is_freebsd) {
-+ sources += [
-+ "src/base/debug/stack_trace_posix.cc",
-+ "src/base/platform/platform-freebsd.cc",
-+ ]
-+ libs = [ "execinfo" ]
- } else if (current_os == "aix") {
- sources += [
- "src/base/debug/stack_trace_posix.cc",