summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-v8_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-v8_BUILD.gn')
-rw-r--r--devel/electron13/files/patch-v8_BUILD.gn27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-v8_BUILD.gn b/devel/electron13/files/patch-v8_BUILD.gn
new file mode 100644
index 000000000000..9473e6d751d6
--- /dev/null
+++ b/devel/electron13/files/patch-v8_BUILD.gn
@@ -0,0 +1,27 @@
+--- v8/BUILD.gn.orig 2021-11-13 11:05:57 UTC
++++ v8/BUILD.gn
+@@ -4604,9 +4604,15 @@ v8_component("v8_libbase") {
+ }
+ }
+
+- if (is_linux || is_chromeos) {
++ if (is_bsd) {
+ sources += [
+ "src/base/debug/stack_trace_posix.cc",
++ "src/base/platform/platform-freebsd.cc",
++ ]
++ libs = [ "rt", "execinfo" ]
++ } else if (is_linux || is_chromeos) {
++ sources += [
++ "src/base/debug/stack_trace_posix.cc",
+ "src/base/platform/platform-linux.cc",
+ ]
+
+@@ -5101,6 +5107,7 @@ if (current_toolchain == v8_generator_toolchain) {
+ "src/interpreter/bytecodes.cc",
+ "src/interpreter/bytecodes.h",
+ ]
++ libs = ["execinfo"]
+
+ configs = [ ":internal_config_base" ]
+