diff options
Diffstat (limited to 'www/iridium/files/patch-v8_BUILD.gn')
-rw-r--r-- | www/iridium/files/patch-v8_BUILD.gn | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/www/iridium/files/patch-v8_BUILD.gn b/www/iridium/files/patch-v8_BUILD.gn new file mode 100644 index 000000000000..ca96fab01a1d --- /dev/null +++ b/www/iridium/files/patch-v8_BUILD.gn @@ -0,0 +1,45 @@ +--- v8/BUILD.gn.orig 2022-03-28 18:11:04 UTC ++++ v8/BUILD.gn +@@ -1198,6 +1198,14 @@ config("toolchain") { + } else if (target_os == "win") { + defines += [ "V8_HAVE_TARGET_OS" ] + defines += [ "V8_TARGET_OS_WIN" ] ++ } 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" ] + } + + # TODO(jochen): Support v8_enable_prof on Windows. +@@ -5117,7 +5125,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", +@@ -5127,6 +5135,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", |