1--- src/3rdparty/chromium/build/config/BUILDCONFIG.gn.orig 2025-08-15 18:30:00 UTC 2+++ src/3rdparty/chromium/build/config/BUILDCONFIG.gn 3@@ -136,7 +136,8 @@ declare_args() { 4 is_official_build = false 5 6 # Set to true when compiling with the Clang compiler. 7- is_clang = current_os != "linux" || 8+ is_clang = current_os != "linux" || current_os == "openbsd" || 9+ current_os == "freebsd" || 10 (current_cpu != "s390x" && current_cpu != "s390" && 11 current_cpu != "ppc64" && current_cpu != "ppc" && 12 current_cpu != "mips" && current_cpu != "mips64" && 13@@ -247,6 +248,10 @@ if (host_toolchain == "") { 14 host_toolchain = "//build/toolchain/aix:$host_cpu" 15 } else if (host_os == "zos") { 16 host_toolchain = "//build/toolchain/zos:$host_cpu" 17+ } else if (host_os == "openbsd") { 18+ host_toolchain = "//build/toolchain/openbsd:clang_$host_cpu" 19+ } else if (host_os == "freebsd") { 20+ host_toolchain = "//build/toolchain/freebsd:clang_$host_cpu" 21 } else { 22 assert(false, "Unsupported host_os: $host_os") 23 } 24@@ -293,6 +298,8 @@ if (target_os == "android") { 25 _default_toolchain = "//build/toolchain/aix:$target_cpu" 26 } else if (target_os == "zos") { 27 _default_toolchain = "//build/toolchain/zos:$target_cpu" 28+} else if (target_os == "openbsd" || target_os == "freebsd") { 29+ _default_toolchain = host_toolchain 30 } else { 31 assert(false, "Unsupported target_os: $target_os") 32 } 33@@ -327,7 +334,11 @@ is_ios = current_os == "ios" 34 is_chromeos = current_os == "chromeos" 35 is_fuchsia = current_os == "fuchsia" 36 is_ios = current_os == "ios" 37-is_linux = current_os == "linux" 38+is_linux = current_os == "linux" || current_os == "openbsd" || 39+ current_os == "freebsd" 40+is_openbsd = current_os == "openbsd" 41+is_freebsd = current_os == "freebsd" 42+is_bsd = current_os == "openbsd" || current_os == "freebsd" 43 is_mac = current_os == "mac" 44 is_nacl = current_os == "nacl" 45 is_watchos = current_os == "watchos" 46