# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/chromium/compiler-rt-adjust-paths.patch # Copyright (C) 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- chromium-138.0.7204.49/build/config/clang/BUILD.gn.vanilla 2025-06-26 18:42:19.000726047 +0200 +++ chromium-138.0.7204.49/build/config/clang/BUILD.gn 2025-06-26 18:44:56.229760913 +0200 @@ -210,12 +210,15 @@ } else if (is_linux || is_chromeos) { if (current_cpu == "x64") { _dir = "x86_64-unknown-linux-gnu" + _suffix = "-x86_64" } else if (current_cpu == "x86") { _dir = "i386-unknown-linux-gnu" + _suffix = "-i386" } else if (current_cpu == "arm") { _dir = "armv7-unknown-linux-gnueabihf" } else if (current_cpu == "arm64") { _dir = "aarch64-unknown-linux-gnu" + _suffix = "-aarch64" } else if (current_cpu == "loong64") { _dir = "loongarch64-unknown-linux-gnu" } else { @@ -248,6 +251,8 @@ assert(false) # Unhandled target platform } + _clang_lib_dir = "$clang_base_path/lib" + _dir = "linux" _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}" libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]