mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
Changelog: https://chromium.googlesource.com/chromium/src/+log/74.0.3729.169..75.0.3770.80?pretty=fuller&n=10000 Submitted by: Matthias Wolf <matthias@rheinwolf.de>
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
--- build/toolchain/gcc_toolchain.gni.orig 2019-06-04 18:55:15 UTC
|
|
+++ build/toolchain/gcc_toolchain.gni
|
|
@@ -36,6 +36,11 @@ if (is_linux && target_os == "android") {
|
|
enable_resource_whitelist_generation = false
|
|
}
|
|
|
|
+declare_args() {
|
|
+ extra_cxxflags = ""
|
|
+ extra_ldflags = ""
|
|
+}
|
|
+
|
|
# This template defines a toolchain for something that works like gcc
|
|
# (including clang).
|
|
#
|
|
@@ -617,13 +622,23 @@ template("clang_toolchain") {
|
|
}
|
|
|
|
gcc_toolchain(target_name) {
|
|
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
|
- cc = "$prefix/clang"
|
|
- cxx = "$prefix/clang++"
|
|
- ld = cxx
|
|
- readelf = "${toolprefix}readelf"
|
|
- ar = "${prefix}/llvm-ar"
|
|
- nm = "${toolprefix}nm"
|
|
+ if (is_bsd) {
|
|
+ prefix = "/usr/local/bin"
|
|
+ cc = "cc"
|
|
+ cxx = "c++"
|
|
+ ld = cxx
|
|
+ readelf = "readelf"
|
|
+ ar = "${prefix}/ar"
|
|
+ nm = "${toolprefix}nm"
|
|
+ } else {
|
|
+ prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
|
+ cc = "$prefix/clang"
|
|
+ cxx = "$prefix/clang++"
|
|
+ ld = cxx
|
|
+ readelf = "${toolprefix}readelf"
|
|
+ ar = "${prefix}/llvm-ar"
|
|
+ nm = "${toolprefix}nm"
|
|
+ }
|
|
|
|
forward_variables_from(invoker,
|
|
[
|