aboutsummaryrefslogtreecommitdiff
path: root/devel/electron12/files/patch-v8_BUILD.gn
blob: ee96f8cf6a3c96c6a82e4b9f0bb7416181b92210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- v8/BUILD.gn.orig	2021-04-22 07:51:51 UTC
+++ v8/BUILD.gn
@@ -4213,9 +4213,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",
     ]
 
@@ -4671,6 +4677,7 @@ if (current_toolchain == v8_generator_toolchain) {
       "src/interpreter/bytecodes.cc",
       "src/interpreter/bytecodes.h",
     ]
+    libs = ["execinfo"]
 
     configs = [ ":internal_config_base" ]