2024-11-10 12:27:03 +01:00
|
|
|
diff -ruN v8-0.106.0.orig/build/config/clang/BUILD.gn v8-0.106.0/build/config/clang/BUILD.gn
|
|
|
|
--- a/v8-0.106.0.orig/build/config/clang/BUILD.gn 2024-11-10 19:22:12.986627534 +0800
|
2024-11-10 12:55:30 +01:00
|
|
|
+++ b/v8-0.106.0/build/config/clang/BUILD.gn 2024-11-10 19:52:00.676576200 +0800
|
2024-11-10 12:27:03 +01:00
|
|
|
@@ -192,12 +192,15 @@
|
2024-11-10 10:22:16 +01:00
|
|
|
} 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
|
|
|
|
}
|
2024-11-10 12:27:03 +01:00
|
|
|
@@ -228,7 +231,12 @@
|
2024-11-10 10:22:16 +01:00
|
|
|
assert(false) # Unhandled target platform
|
|
|
|
}
|
|
|
|
|
2024-11-10 12:27:03 +01:00
|
|
|
- _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
|
2024-11-10 10:22:16 +01:00
|
|
|
+ # Bit of a hack to make this find builtins from compiler-rt >= 16
|
|
|
|
+ if (is_linux || is_chromeos) {
|
|
|
|
+ _dir = "linux"
|
|
|
|
+ }
|
|
|
|
+
|
2024-11-10 12:55:30 +01:00
|
|
|
+ _clang_lib_dir = "$clang_base_path/lib64/clang/$clang_version/lib"
|
2024-11-10 10:22:16 +01:00
|
|
|
_lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
|
|
|
|
libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]
|
2024-11-10 12:27:03 +01:00
|
|
|
}
|