File compiler-rt-adjust-paths.patch of Package rusty_v8

diff -ruN /tmp/rusty_v8-v137.1.0/build/config/clang/BUILD.gn rusty_v8-v137.1.0/build/config/clang/BUILD.gn
--- /tmp/rusty_v8-v137.1.0/build/config/clang/BUILD.gn	1970-01-01 08:00:01.000000000 +0800
+++ rusty_v8-v137.1.0/build/config/clang/BUILD.gn	2025-06-26 14:47:20.638581652 +0800
@@ -201,12 +201,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 {
           assert(false)  # Unhandled cpu type
         }
@@ -237,6 +240,10 @@
         assert(false)  # Unhandled target platform
       }
 
+      if (is_linux || is_chromeos) {
+        _dir = "linux"
+      }
+
       _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
       libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]
 
openSUSE Build Service is sponsored by