1--- src/3rdparty/chromium/build/toolchain/gcc_toolchain.gni.orig 2025-08-15 18:30:00 UTC 2+++ src/3rdparty/chromium/build/toolchain/gcc_toolchain.gni 3@@ -56,6 +56,13 @@ if (enable_resource_allowlist_generation) { 4 "enable_resource_allowlist_generation=true does not work for target_os=$target_os") 5 } 6 7+declare_args() { 8+ extra_cflags = "" 9+ extra_cppflags = "" 10+ extra_cxxflags = "" 11+ extra_ldflags = "" 12+} 13+ 14 # This template defines a toolchain for something that works like gcc 15 # (including clang). 16 # 17@@ -902,22 +909,12 @@ template("clang_toolchain") { 18 # actually just be doing a native compile. 19 template("clang_toolchain") { 20 gcc_toolchain(target_name) { 21- _path = "$clang_base_path/bin" 22- _is_path_absolute = get_path_info(_path, "abspath") == _path 23- 24- # Preserve absolute paths for tools like distcc. 25- if (_is_path_absolute && filter_include([ _path ], [ "//*" ]) == []) { 26- prefix = _path 27- } else { 28- prefix = rebase_path(_path, root_build_dir) 29- } 30- 31- cc = "${prefix}/clang" 32- cxx = "${prefix}/clang++" 33+ cc = "cc" 34+ cxx = "c++" 35 ld = cxx 36- readelf = "${prefix}/llvm-readelf" 37- ar = "${prefix}/llvm-ar" 38- nm = "${prefix}/llvm-nm" 39+ readelf = "readelf" 40+ ar = "ar" 41+ nm = "nm" 42 43 forward_variables_from(invoker, "*", [ "toolchain_args" ]) 44 45