ports/www/chromium/files/patch-build_toolchain_freebsd_BUILD.gn
Rene Ladan a23dfd214a www/chromium: update to 98.0.4758.102
- The port now uses the combined patch set for OpenBSD and FreeBSD
  maintained by Robert Nagy.
- Fix build on i386 again.
Obtained from:	Robert Nagy <robert@openbsd.org>
Security:	https://vuxml.freebsd.org/freebsd/e12432af-8e73-11ec-8bc4-3065ec8fd3ec.html
Security:	https://vuxml.freebsd.org/freebsd/e852f43c-846e-11ec-b043-3065ec8fd3ec.html
2022-02-20 12:42:02 +01:00

69 lines
1.3 KiB
Text

--- build/toolchain/freebsd/BUILD.gn.orig 2022-02-07 13:39:41 UTC
+++ build/toolchain/freebsd/BUILD.gn
@@ -0,0 +1,66 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/sysroot.gni")
+import("//build/toolchain/gcc_toolchain.gni")
+
+clang_toolchain("clang_x86") {
+ toolchain_args = {
+ current_cpu = "x86"
+ current_os = "freebsd"
+ }
+}
+
+gcc_toolchain("x86") {
+ cc = "gcc"
+ cxx = "g++"
+
+ readelf = "readelf"
+ nm = "nm"
+ ar = "ar"
+ ld = cxx
+
+ toolchain_args = {
+ current_cpu = "x86"
+ current_os = "freebsd"
+ is_clang = false
+ }
+}
+
+clang_toolchain("clang_x64") {
+ toolchain_args = {
+ current_cpu = "x64"
+ current_os = "freebsd"
+ }
+}
+
+gcc_toolchain("x64") {
+ cc = "gcc"
+ cxx = "g++"
+
+ readelf = "readelf"
+ nm = "nm"
+ ar = "ar"
+ ld = cxx
+
+ toolchain_args = {
+ current_cpu = "x64"
+ current_os = "freebsd"
+ is_clang = false
+ }
+}
+
+clang_toolchain("clang_arm") {
+ toolchain_args = {
+ current_cpu = "arm64"
+ current_os = "freebsd"
+ }
+}
+
+clang_toolchain("clang_arm64") {
+ toolchain_args = {
+ current_cpu = "arm64"
+ current_os = "freebsd"
+ }
+}