1--- src/3rdparty/chromium/BUILD.gn.orig	2025-08-15 18:30:00 UTC
2+++ src/3rdparty/chromium/BUILD.gn
3@@ -72,7 +72,7 @@ declare_args() {
4   qtwebengine_target = "//tools/gn"
5 }
6
7-if (is_official_build) {
8+if (is_official_build && !is_bsd) {
9   # An official (maximally optimized!) component (optimized for build times)
10   # build doesn't make sense and usually doesn't work.
11   assert(!is_component_build)
12@@ -104,7 +104,6 @@ group("gn_all") {
13       "//codelabs",
14       "//components:components_unittests",
15       "//components/gwp_asan:gwp_asan_unittests",
16-      "//infra/orchestrator:orchestrator_all",
17       "//net:net_unittests",
18       "//sandbox:sandbox_unittests",
19       "//services:services_unittests",
20@@ -447,7 +446,7 @@ group("gn_all") {
21       }
22     }
23
24-    if (is_linux || is_chromeos || is_android) {
25+    if ((is_linux && !is_bsd) || is_chromeos || is_android) {
26       deps += [
27         "//third_party/breakpad:breakpad_unittests",
28         "//third_party/breakpad:core-2-minidump",
29@@ -637,6 +636,15 @@ group("gn_all") {
30       }
31     }
32
33+    if (is_bsd) {
34+      deps -= [
35+        "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
36+        "//third_party/breakpad:microdump_stackwalk($host_system_allocator_toolchain)",
37+        "//third_party/breakpad:minidump_dump($host_system_allocator_toolchain)",
38+        "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)",
39+      ]
40+    }
41+
42     if (is_mac && !is_qtwebengine) {
43       deps += [
44         "//third_party/breakpad:dump_syms($host_system_allocator_toolchain)",
45@@ -685,7 +693,7 @@ group("gn_all") {
46       }
47     }
48
49-    if (!is_fuchsia) {
50+    if (!is_fuchsia && !is_bsd) {
51       # The official builders use this binary from the default toolchain's
52       # output directory after building in order to upload the symbols of that
53       # binary. They build the binary like `ninja symupload` which requires the
54@@ -1130,7 +1138,7 @@ if (use_blink && !is_cronet_build) {
55     ]
56
57     if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android &&
58-        !is_castos) {
59+        !is_castos && !is_bsd) {
60       deps += [
61         ":chrome_wpt_tests",
62         ":headless_shell_wpt",
63@@ -1280,7 +1288,7 @@ if (use_blink && !is_cronet_build) {
64       data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
65     }
66
67-    if (!is_win && !is_android) {
68+    if (!is_win && !is_android && !is_bsd) {
69       # Using the default toolchain for this tool, as it's run during tests not
70       # during the build. This places a symlink in the root_build_dir for scrips
71       # to use.
72@@ -1294,7 +1302,7 @@ if (use_blink && !is_cronet_build) {
73       data_deps += [ "//third_party/breakpad:dump_syms" ]
74     }
75
76-    if (is_linux || is_chromeos) {
77+    if ((is_linux && !is_bsd) || is_chromeos) {
78       # Using the default toolchain for this tool, as it's run during tests not
79       # during the build. This places a symlink in the root_build_dir for scrips
80       # to use.
81@@ -1764,7 +1772,7 @@ group("chromium_builder_perf") {
82       data_deps += [ "//chrome/test:performance_browser_tests" ]
83     }
84
85-    if (!is_win) {
86+    if (!is_win && !is_bsd) {
87       data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_system_allocator_toolchain)" ]
88     }
89   }
90