aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-v8_BUILD.gn
blob: 35dc5ad8b2695b9098b638f20f91d6c50bb7c4f8 (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-07-19 18:47:37 UTC
+++ v8/BUILD.gn
@@ -4667,9 +4667,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",
     ]
 
@@ -5204,6 +5210,7 @@ if (current_toolchain == v8_generator_toolchain) {
       "src/interpreter/bytecodes.cc",
       "src/interpreter/bytecodes.h",
     ]
+    libs = ["execinfo"]
 
     configs = [ ":internal_config" ]