summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-v8_BUILD_gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/patch-v8_BUILD_gn')
-rw-r--r--www/chromium-uc/patches/patch-v8_BUILD_gn37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/patch-v8_BUILD_gn b/www/chromium-uc/patches/patch-v8_BUILD_gn
new file mode 100644
index 0000000..2edfd2d
--- /dev/null
+++ b/www/chromium-uc/patches/patch-v8_BUILD_gn
@@ -0,0 +1,37 @@
1$OpenBSD: patch-v8_BUILD_gn,v 1.47 2021/11/16 11:28:47 robert Exp $
2
3Index: v8/BUILD.gn
4--- v8/BUILD.gn.orig
5+++ v8/BUILD.gn
6@@ -1182,6 +1182,9 @@ config("toolchain") {
7 } else if (target_os == "win") {
8 defines += [ "V8_HAVE_TARGET_OS" ]
9 defines += [ "V8_TARGET_OS_WIN" ]
10+ } else if (target_os == "openbsd") {
11+ defines += [ "V8_HAVE_TARGET_OS" ]
12+ defines += [ "V8_TARGET_OS_OPENBSD" ]
13 }
14
15 # TODO(jochen): Support v8_enable_prof on Windows.
16@@ -5058,7 +5061,7 @@ v8_component("v8_libbase") {
17 }
18 }
19
20- if (is_linux || is_chromeos) {
21+ if ((is_linux || is_chromeos) && !is_openbsd) {
22 sources += [
23 "src/base/debug/stack_trace_posix.cc",
24 "src/base/platform/platform-linux.cc",
25@@ -5068,6 +5071,12 @@ v8_component("v8_libbase") {
26 "dl",
27 "rt",
28 ]
29+ } else if (is_openbsd) {
30+ sources += [
31+ "src/base/debug/stack_trace_posix.cc",
32+ "src/base/platform/platform-openbsd.cc",
33+ ]
34+ libs = [ "execinfo" ]
35 } else if (current_os == "aix") {
36 sources += [
37 "src/base/debug/stack_trace_posix.cc",