1--- build/toolchain/freebsd/BUILD.gn.orig	2022-02-07 13:39:41 UTC
2+++ build/toolchain/freebsd/BUILD.gn
3@@ -0,0 +1,66 @@
4+# Copyright 2013 The Chromium Authors. All rights reserved.
5+# Use of this source code is governed by a BSD-style license that can be
6+# found in the LICENSE file.
7+
8+import("//build/config/sysroot.gni")
9+import("//build/toolchain/gcc_toolchain.gni")
10+
11+clang_toolchain("clang_x86") {
12+  toolchain_args = {
13+    current_cpu = "x86"
14+    current_os = "freebsd"
15+  }
16+}
17+
18+gcc_toolchain("x86") {
19+  cc = "gcc"
20+  cxx = "g++"
21+
22+  readelf = "readelf"
23+  nm = "nm"
24+  ar = "ar"
25+  ld = cxx
26+
27+  toolchain_args = {
28+    current_cpu = "x86"
29+    current_os = "freebsd"
30+    is_clang = false
31+  }
32+}
33+
34+clang_toolchain("clang_x64") {
35+  toolchain_args = {
36+    current_cpu = "x64"
37+    current_os = "freebsd"
38+  }
39+}
40+
41+gcc_toolchain("x64") {
42+  cc = "gcc"
43+  cxx = "g++"
44+
45+  readelf = "readelf"
46+  nm = "nm"
47+  ar = "ar"
48+  ld = cxx
49+
50+  toolchain_args = {
51+    current_cpu = "x64"
52+    current_os = "freebsd"
53+    is_clang = false
54+  }
55+}
56+
57+clang_toolchain("clang_arm") {
58+  toolchain_args = {
59+    current_cpu = "arm64"
60+    current_os = "freebsd"
61+  }
62+}
63+
64+clang_toolchain("clang_arm64") {
65+  toolchain_args = {
66+    current_cpu = "arm64"
67+    current_os = "freebsd"
68+  }
69+}
70