summaryrefslogtreecommitdiff
path: root/www/deno/files/patch-build_config_BUILDCONFIG.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/deno/files/patch-build_config_BUILDCONFIG.gn')
-rw-r--r--www/deno/files/patch-build_config_BUILDCONFIG.gn45
1 files changed, 45 insertions, 0 deletions
diff --git a/www/deno/files/patch-build_config_BUILDCONFIG.gn b/www/deno/files/patch-build_config_BUILDCONFIG.gn
new file mode 100644
index 000000000000..a2b8849d6da6
--- /dev/null
+++ b/www/deno/files/patch-build_config_BUILDCONFIG.gn
@@ -0,0 +1,45 @@
+--- cargo-crates/v8-0.105.0/build/config/BUILDCONFIG.gn.orig 2024-05-21 18:07:39 UTC
++++ cargo-crates/v8-0.105.0/build/config/BUILDCONFIG.gn
+@@ -136,7 +136,8 @@ declare_args() {
+ is_official_build = false
+
+ # Set to true when compiling with the Clang compiler.
+- is_clang = current_os != "linux" ||
++ is_clang = current_os != "linux" || current_os == "openbsd" ||
++ current_os == "freebsd" ||
+ (current_cpu != "s390x" && current_cpu != "s390" &&
+ current_cpu != "ppc64" && current_cpu != "ppc" &&
+ current_cpu != "mips" && current_cpu != "mips64" &&
+@@ -231,6 +232,10 @@ if (host_toolchain == "") {
+ host_toolchain = "//build/toolchain/aix:$host_cpu"
+ } else if (host_os == "zos") {
+ host_toolchain = "//build/toolchain/zos:$host_cpu"
++ } else if (host_os == "openbsd") {
++ host_toolchain = "//build/toolchain/openbsd:clang_$host_cpu"
++ } else if (host_os == "freebsd") {
++ host_toolchain = "//build/toolchain/freebsd:clang_$host_cpu"
+ } else {
+ assert(false, "Unsupported host_os: $host_os")
+ }
+@@ -274,6 +279,8 @@ if (target_os == "android") {
+ _default_toolchain = "//build/toolchain/aix:$target_cpu"
+ } else if (target_os == "zos") {
+ _default_toolchain = "//build/toolchain/zos:$target_cpu"
++} else if (target_os == "openbsd" || target_os == "freebsd") {
++ _default_toolchain = host_toolchain
+ } else {
+ assert(false, "Unsupported target_os: $target_os")
+ }
+@@ -308,7 +315,11 @@ is_android = current_os == "android"
+ is_chromeos = current_os == "chromeos"
+ is_fuchsia = current_os == "fuchsia"
+ is_ios = current_os == "ios"
+-is_linux = current_os == "linux"
++is_linux = current_os == "linux" || current_os == "openbsd" ||
++ current_os == "freebsd"
++is_openbsd = current_os == "openbsd"
++is_freebsd = current_os == "freebsd"
++is_bsd = current_os == "openbsd" || current_os == "freebsd"
+ is_mac = current_os == "mac"
+ is_nacl = current_os == "nacl"
+ is_win = current_os == "win" || current_os == "winuwp"