9ad5184453
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
57 lines
1.7 KiB
Text
57 lines
1.7 KiB
Text
--- v8/BUILD.gn.orig 2023-08-20 00:00:07 UTC
|
|
+++ v8/BUILD.gn
|
|
@@ -1373,6 +1373,14 @@ config("toolchain") {
|
|
} else if (target_os == "chromeos") {
|
|
defines += [ "V8_HAVE_TARGET_OS" ]
|
|
defines += [ "V8_TARGET_OS_CHROMEOS" ]
|
|
+ } else if (target_os == "openbsd") {
|
|
+ defines += [ "V8_HAVE_TARGET_OS" ]
|
|
+ defines += [ "V8_TARGET_OS_OPENBSD" ]
|
|
+ defines += [ "V8_TARGET_OS_BSD" ]
|
|
+ } else if (target_os == "freebsd") {
|
|
+ defines += [ "V8_HAVE_TARGET_OS" ]
|
|
+ defines += [ "V8_TARGET_OS_FREEBSD" ]
|
|
+ defines += [ "V8_TARGET_OS_BSD" ]
|
|
}
|
|
|
|
# TODO(infra): Support v8_enable_prof on Windows.
|
|
@@ -2299,6 +2307,11 @@ template("run_mksnapshot") {
|
|
# list of builtins with incompatible profiles.
|
|
"--abort-on-bad-builtin-profile-data",
|
|
]
|
|
+ if (v8_current_cpu == "x86") {
|
|
+ args -= [
|
|
+ "--abort-on-bad-builtin-profile-data",
|
|
+ ]
|
|
+ }
|
|
}
|
|
|
|
# This is needed to distinguish between generating code for the simulator
|
|
@@ -5924,7 +5937,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",
|
|
@@ -5935,6 +5948,18 @@ v8_component("v8_libbase") {
|
|
"dl",
|
|
"rt",
|
|
]
|
|
+ } else if (is_openbsd) {
|
|
+ sources += [
|
|
+ "src/base/debug/stack_trace_posix.cc",
|
|
+ "src/base/platform/platform-openbsd.cc",
|
|
+ ]
|
|
+ libs = [ "execinfo" ]
|
|
+ } else if (is_freebsd) {
|
|
+ sources += [
|
|
+ "src/base/debug/stack_trace_posix.cc",
|
|
+ "src/base/platform/platform-freebsd.cc",
|
|
+ ]
|
|
+ libs = [ "execinfo" ]
|
|
} else if (current_os == "aix") {
|
|
sources += [
|
|
"src/base/debug/stack_trace_posix.cc",
|