0021-v8-settings.patch 934 B

123456789101112131415161718192021222324252627
  1. From 6ca882e4e194fdddac7c66bc2dee2907093a3796 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Thu, 28 Apr 2022 01:04:27 +0000
  4. Subject: [PATCH 21/22] v8 settings
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. build/config/v8_target_cpu.gni | 3 +++
  8. 1 file changed, 3 insertions(+)
  9. diff --git a/build/config/v8_target_cpu.gni b/build/config/v8_target_cpu.gni
  10. index 305981f3fa538..44b7700935cc6 100644
  11. --- a/build/config/v8_target_cpu.gni
  12. +++ b/build/config/v8_target_cpu.gni
  13. @@ -49,6 +49,9 @@ if (v8_target_cpu == "") {
  14. # code that will be run under a simulator, then the generated code
  15. # also gets the benefits of the sanitizer.
  16. v8_target_cpu = "arm64"
  17. + } else if (current_toolchain ==
  18. + "//build/toolchain/linux:clang_x86_v8_riscv64") {
  19. + v8_target_cpu = "riscv64"
  20. } else {
  21. v8_target_cpu = target_cpu
  22. }
  23. --
  24. 2.25.1