summaryrefslogtreecommitdiff
path: root/lang/v8/files/patch-BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'lang/v8/files/patch-BUILD.gn')
-rw-r--r--lang/v8/files/patch-BUILD.gn32
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/v8/files/patch-BUILD.gn b/lang/v8/files/patch-BUILD.gn
new file mode 100644
index 000000000000..f4cf17f479ab
--- /dev/null
+++ b/lang/v8/files/patch-BUILD.gn
@@ -0,0 +1,32 @@
+--- BUILD.gn.orig 2021-04-22 15:00:28 UTC
++++ BUILD.gn
+@@ -4438,7 +4438,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",
+@@ -4455,6 +4455,12 @@ v8_component("v8_libbase") {
+ ]
+
+ libs = [ "dl" ]
++ } else if (is_bsd) {
++ sources += [
++ "src/base/debug/stack_trace_posix.cc",
++ "src/base/platform/platform-freebsd.cc",
++ ]
++ libs = [ "rt", "execinfo" ]
+ } else if (is_android) {
+ if (current_toolchain == host_toolchain) {
+ libs = [
+@@ -4890,6 +4896,7 @@ if (v8_monolithic) {
+ ":v8_libsampler",
+ "//build/win:default_exe_manifest",
+ ]
++ libs = ["execinfo"]
+
+ configs = [ ":internal_config" ]
+ }